зеркало из https://github.com/mozilla/gecko-dev.git
fix sandboxing of sidebar iframe. bug 59603 r=hyatt,matt
This commit is contained in:
Родитель
c376e7059c
Коммит
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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче