fix sandboxing of sidebar iframe. bug 59603 r=hyatt,matt

This commit is contained in:
danm%netscape.com 2006-07-27 14:53:36 +00:00
parent c376e7059c
commit bee319067d

View File

@ -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;
}
}