Bug 854175 - Don't add "(Private Browsing)" to the window title in permanent PB mode. r=ehsan, a=bajaj
authorChristian Ascheberg <c.ascheberg@gmx.de>
Sun, 24 Mar 2013 11:15:53 +0100
changeset 132582 132b6ad632cc571b1f174d41874626c54519fdbf
parent 132581 8ac5f560ac98d45254a9be01a0acd286871bc5ad
child 132583 e986afca566460ecf2efedcf98fbcc4811b29e89
push id2356
push userryanvm@gmail.com
push dateWed, 10 Apr 2013 11:43:40 +0000
treeherdermozilla-beta@132b6ad632cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, bajaj
bugs854175
milestone21.0
Bug 854175 - Don't add "(Private Browsing)" to the window title in permanent PB mode. r=ehsan, a=bajaj
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -7208,20 +7208,22 @@ let gPrivateBrowsingUI = {
 #ifdef XP_MACOSX
       if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
         document.documentElement.setAttribute("drawintitlebar", true);
       }
 #endif
 
       // Adjust the window's title
       let docElement = document.documentElement;
-      docElement.setAttribute("title",
-        docElement.getAttribute("title_privatebrowsing"));
-      docElement.setAttribute("titlemodifier",
-        docElement.getAttribute("titlemodifier_privatebrowsing"));
+      if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
+        docElement.setAttribute("title",
+          docElement.getAttribute("title_privatebrowsing"));
+        docElement.setAttribute("titlemodifier",
+          docElement.getAttribute("titlemodifier_privatebrowsing"));
+      }
       docElement.setAttribute("privatebrowsingmode",
         PrivateBrowsingUtils.permanentPrivateBrowsing ? "permanent" : "temporary");
       gBrowser.updateTitlebar();
 
       if (PrivateBrowsingUtils.permanentPrivateBrowsing) {
         // Adjust the New Window menu entries
         [
           { normal: "menu_newNavigator", private: "menu_newPrivateWindow" },