Bug 1567783 - Overwrite Browser console dialog title with Error console again. r+a=jorgk
authoraceman <acelists@atlas.sk>
Sat, 10 Aug 2019 11:00:00 +0200
changeset 36149 e28a7f022182740449c07d97f510d1b2cfb09779
parent 36148 8dd24940ccfa4d13dad9490e14a875634de79be7
child 36150 d16312466cccd7771275d32ee45d88474f7f6c83
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
bugs1567783
Bug 1567783 - Overwrite Browser console dialog title with Error console again. r+a=jorgk
mail/components/mailGlue.js
--- a/mail/components/mailGlue.js
+++ b/mail/components/mailGlue.js
@@ -54,24 +54,25 @@ MailGlue.prototype = {
     Services.obs.addObserver(this, "xpcom-shutdown");
     Services.obs.addObserver(this, "final-ui-startup");
     Services.obs.addObserver(this, "mail-startup-done");
     Services.obs.addObserver(this, "handle-xul-text-link");
     Services.obs.addObserver(this, "chrome-document-global-created");
 
     // Inject scripts into some devtools windows.
     function _setupBrowserConsole(domWindow) {
-      domWindow.document.documentElement.setAttribute("title", gMailBundle.GetStringFromName("errorConsoleTitle"));
+      // Browser Console is an XHTML document.
+      domWindow.document.title = gMailBundle.GetStringFromName("errorConsoleTitle");
       Services.scriptloader.loadSubScript("chrome://global/content/viewSourceUtils.js", domWindow);
     }
 
     ExtensionSupport.registerWindowListener(
       "Thunderbird-internal-BrowserConsole",
       {
-        chromeURLs: [ "chrome://devtools/content/webconsole/browserconsole.xul" ],
+        chromeURLs: [ "chrome://devtools/content/webconsole/index.html" ],
         onLoadWindow: _setupBrowserConsole,
       });
 
     function _setupToolbox(domWindow) {
       // Defines openUILinkIn and openWebLinkIn
       Services.scriptloader.loadSubScript("chrome://communicator/content/contentAreaClick.js", domWindow);
     }