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;