mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
fix sandboxing of sidebar iframe. bug 59603 r=hyatt,matt
This commit is contained in:
parent
c376e7059c
commit
bee319067d
@ -367,10 +367,10 @@ function ()
|
||||
if (typeof this.iframe == "undefined") {
|
||||
var content = this.get_content();
|
||||
if (this.is_sandboxed()) {
|
||||
var unsandboxed_iframe = content.childNodes.item(1);
|
||||
var unsandboxed_iframe = content.childNodes.item(2);
|
||||
this.iframe = unsandboxed_iframe;
|
||||
} else {
|
||||
var sandboxed_iframe = content.childNodes.item(2);
|
||||
var sandboxed_iframe = content.childNodes.item(1);
|
||||
this.iframe = sandboxed_iframe;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user