From e73d741463f6fbcf10b247930d1edc4010d7d16a Mon Sep 17 00:00:00 2001 From: "bugzilla%arlen.demon.co.uk" Date: Wed, 1 Dec 2004 16:21:02 +0000 Subject: [PATCH] Bug 261790 port various changes betwen xpfe/toolkit Relanding patch after aviary branch landing - already reviewed --- toolkit/content/charsetOverlay.js | 8 +++--- toolkit/content/charsetOverlay.xul | 4 +-- toolkit/content/commonDialog.xul | 2 -- toolkit/content/globalOverlay.js | 5 ++-- toolkit/content/nsTransferable.js | 2 +- toolkit/content/widgets/browser.xml | 4 +-- toolkit/content/widgets/colorpicker.xml | 14 ----------- toolkit/content/widgets/dialog.xml | 1 - toolkit/content/widgets/editor.xml | 4 +-- toolkit/content/widgets/menulist.xml | 5 +--- toolkit/content/widgets/stringbundle.xml | 2 +- toolkit/content/widgets/tabbrowser.xml | 32 +++++++++++++----------- toolkit/content/xul.css | 27 ++++++++++---------- 13 files changed, 45 insertions(+), 65 deletions(-) diff --git a/toolkit/content/charsetOverlay.js b/toolkit/content/charsetOverlay.js index 8dd4c587c74..354803ea204 100644 --- a/toolkit/content/charsetOverlay.js +++ b/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/toolkit/content/charsetOverlay.xul b/toolkit/content/charsetOverlay.xul index fe3b60aec49..7f862df2f91 100644 --- a/toolkit/content/charsetOverlay.xul +++ b/toolkit/content/charsetOverlay.xul @@ -1,6 +1,6 @@ - + - +