Bug 1269485 - Improve New Private Browsing start-page background styles r=Gijs

MozReview-Commit-ID: 6gju3cfipJ3
This commit is contained in:
Ricky Chien
2016-05-04 17:05:50 +08:00
parent 13eaa79ef4
commit dbb51e123b
4 changed files with 16 additions and 21 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -17,7 +17,7 @@
%aboutPrivateBrowsingDTD;
]>
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" class="private">
<head>
<link id="favicon" rel="icon" type="image/png"/>
<link rel="stylesheet" href="chrome://browser/content/aboutPrivateBrowsing.css" type="text/css" media="all"/>
@@ -25,7 +25,7 @@
<script type="application/javascript;version=1.7" src="chrome://browser/content/aboutPrivateBrowsing.js"></script>
</head>
<body dir="&locale.dir;" class="private">
<body dir="&locale.dir;">
<p class="showNormal">&aboutPrivateBrowsing.notPrivate;</p>
<button xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="startPrivateBrowsing"