commit 4e3f5646eb5b9798e77b48ca9f29883cd6e6e9f1
parent 67206da4742249419302edd0b0cbb95ece90397d
Author: Henry Wilkes <henry@torproject.org>
Date: Tue, 26 Aug 2025 17:22:12 +0100
BB 43901: Modify about:license.
We also drop about:rights.
Diffstat:
4 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/browser/base/moz.build b/browser/base/moz.build
@@ -79,6 +79,7 @@ PERFTESTS_MANIFESTS += ["content/test/perftest.toml"]
DEFINES["MOZ_APP_VERSION"] = CONFIG["MOZ_APP_VERSION"]
DEFINES["MOZ_APP_VERSION_DISPLAY"] = CONFIG["MOZ_APP_VERSION_DISPLAY"]
-DEFINES["APP_LICENSE_BLOCK"] = "%s/content/overrides/app-license.html" % SRCDIR
+# Do not include the Firefox app-license.html in about:license.
+# tor-browser#43901.
JAR_MANIFESTS += ["jar.mn"]
diff --git a/browser/components/about/AboutRedirector.cpp b/browser/components/about/AboutRedirector.cpp
@@ -91,9 +91,7 @@ static const RedirEntry kRedirMap[] = {
{"profiling",
"chrome://devtools/content/performance-new/aboutprofiling/index.html",
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
- {"rights", "https://www.mozilla.org/about/legal/terms/firefox/",
- nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
- nsIAboutModule::URI_MUST_LOAD_IN_CHILD},
+// Drop about:rights. tor-browser#43901.
#ifndef BASE_BROWSER_VERSION
{"robots", "chrome://browser/content/aboutRobots.xhtml",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
diff --git a/browser/components/about/components.conf b/browser/components/about/components.conf
@@ -22,7 +22,7 @@ pages = [
'profiling',
'reader',
'restartrequired',
- 'rights',
+ # Removed 'rights'. tor-browser#43901.
# Removed 'robots'. tor-browser#42831.
'sessionrestore',
'settings',
diff --git a/toolkit/themes/shared/aboutLicense.css b/toolkit/themes/shared/aboutLicense.css
@@ -5,13 +5,9 @@
/* License Illustration */
.license-header {
- background-image: url("chrome://global/skin/illustrations/about-license.svg");
- background-repeat: no-repeat;
- background-position: right center;
- min-height: 300px;
- display: flex;
- align-items: center;
- padding-inline-end: 320px;
+ /* Adjust the header to remove the background, which is out of place without
+ * the app-license.html content. */
+ align-self: start;
}
td:nth-child(1),