Bug 1589962 - Standalone mail window does not have gMessageBrowser defined. r=frg a=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Wed, 30 Oct 2019 19:43:01 +0100
changeset 32352 20f92f529dad9e10cedf9564c74675550c8f51a5
parent 32351 a034a02220f00215ce87c5662432cf9af05a9508
child 32353 cb1d1717becead23a0ed83c5502a3f877edb06ef
push id225
push userfrgrahl@gmx.net
push dateWed, 30 Oct 2019 18:44:45 +0000
treeherdercomm-esr60@4f5c19b9a6b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1589962
Bug 1589962 - Standalone mail window does not have gMessageBrowser defined. r=frg a=frg
suite/mailnews/content/messageWindow.js
--- a/suite/mailnews/content/messageWindow.js
+++ b/suite/mailnews/content/messageWindow.js
@@ -687,17 +687,17 @@ var MessageWindowController =
       case "cmd_forwardAttachment":
       case "cmd_editAsNew":
       case "cmd_print":
       case "cmd_printpreview":
       case "button_print":
       case "cmd_saveAsFile":
         return true;
       case "cmd_saveAsTemplate":
-        var target = gMessageBrowser.contentPrincipal.URI.scheme;
+        var target = getMessageBrowser().contentPrincipal.URI.scheme;
         return target != "news";
       case "cmd_viewPageSource":
       case "cmd_reload":
       case "cmd_find":
       case "button_mark":
       case "cmd_markAsRead":
       case "cmd_markAllRead":
       case "cmd_markThreadAsRead":