Skip to content
Permalink
Browse files

FIX for #5683: Address security warning in CMS when attempting to acc…

…ess <iframe> contents (Back-porting fix from PR #5163)
  • Loading branch information...
patricknelson committed Jun 13, 2016
1 parent 39d1ef7 commit f0d49518152bb9743e32174bc870fac6951c161d
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/javascript/LeftAndMain.ActionTabSet.js
@@ -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){
$(iframe).contents().off('click.ss-ui-action-tabset');
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');

0 comments on commit f0d4951

Please sign in to comment.
You can’t perform that action at this time.