mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
commit
7a462cecef
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user