Bug 56995 - Application name should not be included in window title (MailNews part). r=Mnyromyr, sr=Neil.
authorstefanh@inbox.com
Tue, 20 Jan 2009 18:46:51 +0100
changeset 1699 ef7223d5becb8d0367b5d52947dc3d2566970095
parent 1698 84e9c5177712642bda6894f260c9310f4aaec932
child 1700 1a22abcfbc7c5e70b0242ea0f31b1f91f07e72c8
push id1363
push userstefanh@inbox.com
push dateTue, 20 Jan 2009 17:46:59 +0000
treeherdercomm-central@ef7223d5becb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMnyromyr, Neil
bugs56995
Bug 56995 - Application name should not be included in window title (MailNews part). r=Mnyromyr, sr=Neil.
mailnews/base/resources/content/commandglue.js
--- a/mailnews/base/resources/content/commandglue.js
+++ b/mailnews/base/resources/content/commandglue.js
@@ -136,17 +136,20 @@ function setTitleFromFolder(msgfolder, s
           // <folder> for <accountname>
           middle = gMessengerBundle.getString("titleMailPreHost");
           end = server.prettyName;
         }
         if (middle) title += " " + middle;
         if (end) title += " " + end;
       }
     }
-    title += " - " + gBrandBundle.getString("brandShortName");
+
+    if (!/Mac/.test(navigator.platform))
+      title += " - " + gBrandBundle.getString("brandShortName");
+
     document.title = title;
 }
 
 function UpdateMailToolbar(caller)
 {
   //dump("XXX update mail-toolbar " + caller + "\n");
   document.commandDispatcher.updateCommands('mail-toolbar');