mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX for #5683: Address security warning in CMS when attempting to access <iframe> contents (Back-porting fix from PR #5163)
This commit is contained in:
parent
39d1ef7a4b
commit
f0d4951815
@ -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…
Reference in New Issue
Block a user