Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Commit f9f2aa9

Browse files
committed
Style blank tab and keep private mode colors
1 parent c29d95d commit f9f2aa9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

browser/base/content/blanktab.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
body {
6+
background-color: light-dark(rgb(229, 227, 234), rgb(11, 10, 13)) !important;
7+
}

browser/base/content/blanktab.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
http-equiv="Content-Security-Policy"
1212
content="default-src 'none'; style-src chrome:; object-src 'none'"
1313
/>
14+
<link rel="stylesheet" href="chrome://browser/content/blanktab.css" />
1415
</head>
1516
</html>

browser/base/jar.mn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ browser.jar:
3333
content/browser/aboutTabCrashed.js (content/aboutTabCrashed.js)
3434
content/browser/aboutTabCrashed.xhtml (content/aboutTabCrashed.xhtml)
3535
content/browser/blanktab.html (content/blanktab.html)
36+
content/browser/blanktab.css (content/blanktab.css)
3637
content/browser/browser.js (content/browser.js)
3738
* content/browser/browser.xhtml (content/browser.xhtml)
3839
content/browser/browser-a11yUtils.js (content/browser-a11yUtils.js)

0 commit comments

Comments
 (0)