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 35286 e28a7f022182740449c07d97f510d1b2cfb09779
parent 35285 8dd24940ccfa4d13dad9490e14a875634de79be7
child 35287 d16312466cccd7771275d32ee45d88474f7f6c83
push id2477
push usermozilla@jorgk.com
push dateTue, 13 Aug 2019 21:14:23 +0000
treeherdercomm-beta@436d8b620b6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);
     }