diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index 9a429b2753a4..a31b196aae74 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -323,9 +323,6 @@ function Startup() window.browserContentListener = new nsBrowserContentListener(window, getBrowser()); - // XXXjag hack for directory.xul/js - _content.appCore = appCore; - // Initialize browser instance.. appCore.setWebShellWindow(window); @@ -343,10 +340,10 @@ function Startup() var arrayArgComponents = window.arguments[1].split("="); if (arrayArgComponents) { //we should "inherit" the charset menu setting in a new window - appCore.setDefaultCharacterSet(arrayArgComponents[1]); //XXXjag see bug 67442 + getMarkupDocumentViewer().defaultCharacterSet = arrayArgComponents[1]; } } else if (window.arguments[1].indexOf("turbo=yes") != -1) { - turboMode = true; + turboMode = true; } } diff --git a/xpfe/browser/resources/content/viewsource.js b/xpfe/browser/resources/content/viewsource.js index 576866742c95..5799eb832b29 100644 --- a/xpfe/browser/resources/content/viewsource.js +++ b/xpfe/browser/resources/content/viewsource.js @@ -66,7 +66,8 @@ function viewSource(url) if (window.arguments[1].indexOf('charset=') != -1) { var arrayArgComponents = window.arguments[1].split('='); if (arrayArgComponents) { - appCore.setDefaultCharacterSet(arrayArgComponents[1]); //XXXjag see bug 67442 + //we should "inherit" the charset menu setting in a new window + getMarkupDocumentViewer().defaultCharacterSet = arrayArgComponents[1]; } } }