Bug 1269485 - Improve New Private Browsing start-page background styles r=Gijs
MozReview-Commit-ID: 6gju3cfipJ3
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user