Bug 1544793 follow-up - Explicitly check for null instead of falsy value; rs=me DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 23 Sep 2019 11:53:41 +1200
changeset 36910 145ab0ce87cf701f7ca364a38d4af820af6b4d99
parent 36909 781d4961a514a6fd3a97df69b9950c78d2bfe430
child 36911 083cbc1535b223c738c8e4e2c0c0df4ab759a8bf
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersme
bugs1544793
Bug 1544793 follow-up - Explicitly check for null instead of falsy value; rs=me DONTBUILD
mail/components/extensions/parent/ext-windows.js
--- a/mail/components/extensions/parent/ext-windows.js
+++ b/mail/components/extensions/parent/ext-windows.js
@@ -306,17 +306,17 @@ this.windows = class extends ExtensionAP
 
           if (updateInfo.drawAttention) {
             // Bug 1257497 - Firefox can't cancel attention actions.
             win.window.getAttention();
           }
 
           win.updateGeometry(updateInfo);
 
-          if (updateInfo.titlePreface) {
+          if (updateInfo.titlePreface !== null) {
             if (win instanceof TabmailWindow) {
               win.setTitlePreface(updateInfo.titlePreface);
               win.window.document.getElementById("tabmail").setDocumentTitle();
             }
           }
 
           // TODO: All the other properties, focused=false...