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
Родитель c376e7059c
Коммит bee319067d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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