diff --git a/mozilla/toolkit/content/charsetOverlay.js b/mozilla/toolkit/content/charsetOverlay.js index 8dd4c587c74..354803ea204 100644 --- a/mozilla/toolkit/content/charsetOverlay.js +++ b/mozilla/toolkit/content/charsetOverlay.js @@ -80,7 +80,7 @@ function SelectDetector(event, doReload) str.data = prefvalue; pref.setComplexValue("intl.charset.detector", Components.interfaces.nsISupportsString, str); - if (doReload) window._content.location.reload(); + if (doReload) window.content.location.reload(); } catch (ex) { dump("Failed to set the intl.charset.detector preference.\n"); @@ -130,7 +130,7 @@ function UpdateCurrentCharset() // exctract the charset from DOM var wnd = document.commandDispatcher.focusedWindow; - if ((window == wnd) || (wnd == null)) wnd = window._content; + if ((window == wnd) || (wnd == null)) wnd = window.content; menuitem = document.getElementById('charset.' + wnd.document.characterSet); if (menuitem) { @@ -215,7 +215,7 @@ var gLastBrowserCharset = null; function charsetLoadListener (event) { - var charset = window._content.document.characterSet; + var charset = window.content.document.characterSet; if (charset.length > 0 && (charset != gLastBrowserCharset)) { gCharsetMenu.SetCurrentCharset(charset); @@ -227,7 +227,7 @@ function charsetLoadListener (event) function composercharsetLoadListener (event) { - var charset = window._content.document.characterSet; + var charset = window.content.document.characterSet; if (charset.length > 0 ) { diff --git a/mozilla/toolkit/content/charsetOverlay.xul b/mozilla/toolkit/content/charsetOverlay.xul index fe3b60aec49..7f862df2f91 100644 --- a/mozilla/toolkit/content/charsetOverlay.xul +++ b/mozilla/toolkit/content/charsetOverlay.xul @@ -1,6 +1,6 @@ - + - +