Bug 1611645 - Don't set documentElement.title in private windows. r=Gijs
authorDrew Willcoxon <adw@mozilla.com>
Sat, 23 May 2020 08:44:38 +0000
changeset 531766 9259663203fe0563a61ddb727d2f66af5d629170
parent 531765 9036936c19083338f16eb8f5ff7c8fc127ba66c1
child 531767 c55864fc7a4ac6a1c3d3d6d2697f19d1ac485661
push id37443
push usercbrindusan@mozilla.com
push dateSat, 23 May 2020 21:42:57 +0000
treeherdermozilla-central@9a2f741cef6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1611645
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1611645 - Don't set documentElement.title in private windows. r=Gijs Please see https://bugzilla.mozilla.org/show_bug.cgi?id=1611645#c9 for a summary. Differential Revision: https://phabricator.services.mozilla.com/D76584
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -8230,17 +8230,16 @@ var gPrivateBrowsingUI = {
 
     if (window.location.href != AppConstants.BROWSER_CHROME_URL) {
       return;
     }
 
     // Adjust the window's title
     let docElement = document.documentElement;
     if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
-      docElement.title = docElement.getAttribute("title_privatebrowsing");
       docElement.setAttribute(
         "titlemodifier",
         docElement.getAttribute("titlemodifier_privatebrowsing")
       );
     }
     docElement.setAttribute(
       "privatebrowsingmode",
       PrivateBrowsingUtils.permanentPrivateBrowsing ? "permanent" : "temporary"