Merge pull request #5684 from patricknelson/issue-5683-iframe-backport-pr-fix-5163

FIX for #5683: Address security warning in CMS on 3.3 and above.
This commit is contained in:
Damian Mooyman 2016-06-15 14:47:03 +12:00 committed by GitHub
commit 7a462cecef

View File

@ -30,7 +30,11 @@
// because the panel is still open when the ajax edit form reloads.
var frame = $('.cms-container').find('iframe');
frame.each(function(index, iframe){
try {
$(iframe).contents().off('click.ss-ui-action-tabset');
} catch (e) {
console.warn('Unable to access iframe, possible https mis-match');
}
});
$(document).off('click.ss-ui-action-tabset');