From dbb51e123b10ed07676b0fe156579042fbd0ca7c Mon Sep 17 00:00:00 2001 From: Ricky Chien Date: Wed, 4 May 2016 17:05:50 +0800 Subject: [PATCH] Bug 1269485 - Improve New Private Browsing start-page background styles r=Gijs MozReview-Commit-ID: 6gju3cfipJ3 --- .../content/aboutPrivateBrowsing.css | 4 +-- .../content/aboutPrivateBrowsing.js | 4 +-- .../content/aboutPrivateBrowsing.xhtml | 4 +-- .../privatebrowsing/aboutPrivateBrowsing.css | 25 ++++++++----------- 4 files changed, 16 insertions(+), 21 deletions(-) diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css index 14d3d42eba68..29d7a843d76d 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css @@ -1,5 +1,5 @@ -body.private .showNormal, -body.normal .showPrivate, +html.private .showNormal, +html.normal .showPrivate, body[tpEnabled] .showTpDisabled, body:not([tpEnabled]) .showTpEnabled { display: none !important; diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js index ce078d48201f..31ce963470a6 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js @@ -44,8 +44,8 @@ function setFavIcon(url) { document.addEventListener("DOMContentLoaded", function () { if (!PrivateBrowsingUtils.isContentWindowPrivate(window)) { - document.body.classList.remove("private"); - document.body.classList.add("normal"); + document.documentElement.classList.remove("private"); + document.documentElement.classList.add("normal"); document.title = stringBundle.GetStringFromName("title.normal"); document.getElementById("favicon") .setAttribute("href", FAVICON_QUESTION); diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml index b9f7200b5d2f..fb5c4ac8eb38 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml @@ -17,7 +17,7 @@ %aboutPrivateBrowsingDTD; ]> - + @@ -25,7 +25,7 @@ - +

&aboutPrivateBrowsing.notPrivate;