[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-128.2.0esr-14.0-1] 2 commits: fixup! Firefox preference overrides.
morgan (@morgan)
git at gitlab.torproject.org
Wed Sep 18 18:17:20 UTC 2024
morgan pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
1de422d9 by Henry Wilkes at 2024-09-18T18:16:06+00:00
fixup! Firefox preference overrides.
Bug 42718: Drop unused browser.tabs.firefox-view preference.
- - - - -
9507b27a by Henry Wilkes at 2024-09-18T18:16:06+00:00
fixup! Bug 42037: Disable about:firefoxview page
Bug 42718: Always hide the firefox view button.
Also, ensure that `FirefoxViewHandler.openTab` returns early rather than
throwing.
- - - - -
3 changed files:
- browser/app/profile/001-base-profile.js
- browser/base/content/browser.js
- browser/themes/shared/tabbrowser/tabs.css
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -17,9 +17,6 @@ pref("startup.homepage_welcome_url.additional", "");
// Disable Firefox Welcome Dialog
pref("browser.aboutwelcome.enabled", false);
-// Disable the Firefox View tab (tor-browser#41876)
-pref("browser.tabs.firefox-view", false, locked);
-
#if MOZ_UPDATE_CHANNEL == release
// tor-browser#42640: Disable Firefox Flame buttond due to unknown interactions with New Identity
pref("browser.privatebrowsing.resetPBM.enabled", false, locked);
=====================================
browser/base/content/browser.js
=====================================
@@ -8077,6 +8077,11 @@ var FirefoxViewHandler = {
}
},
openTab(section) {
+ if (AppConstants.BASE_BROWSER_VERSION) {
+ // about:firefoxview is disabled. tor-browser#42037.
+ return;
+ }
+
if (!CustomizableUI.getPlacementOfWidget(this.BUTTON_ID)) {
CustomizableUI.addWidgetToArea(
this.BUTTON_ID,
=====================================
browser/themes/shared/tabbrowser/tabs.css
=====================================
@@ -747,17 +747,28 @@
/* Firefox View button and menu item */
-:root:not([privatebrowsingmode], [firefoxviewhidden]) :is(toolbarbutton, toolbarpaletteitem) + #tabbrowser-tabs,
-:root[privatebrowsingmode]:not([firefoxviewhidden]) :is(
+/* about:firefoxview is disabled in Base Browser. See tor-browser#42037.
+ * Therefore we always hide #firefox-view-button, regardless of private
+ * browsing. Here we only want to draw the border if there is a non-hidden
+ * toolbar item before the tabs.
+ * NOTE: Expect merge conflict from bugzilla bug 1917595 and bug 1917599. In
+ * these cases we want to keep our selector as-is. */
+:root :is(
toolbarbutton:not(#firefox-view-button),
toolbarpaletteitem:not(#wrapper-firefox-view-button)
-) + #tabbrowser-tabs {
+) ~ #tabbrowser-tabs {
border-inline-start: 1px solid color-mix(in srgb, currentColor 25%, transparent);
padding-inline-start: calc(var(--tab-overflow-pinned-tabs-width) + 2px);
margin-inline-start: 2px;
}
-:root[privatebrowsingmode] :is(#firefox-view-button, #menu_openFirefoxView) {
+/* about:firefoxview is disabled in Base Browser. Always hide the toolbar button
+ * and menu item regardless of private browsing. See tor-browser#42037.
+ * NOTE: We also hide #wrapper-firefox-view-button, which is used during
+ * customization.
+ * NOTE: Expect merge conflict from bugzilla bug 1903812 and bug 1917599. In
+ * these cases we want to keep our selector as-is. */
+#firefox-view-button, #wrapper-firefox-view-button, #menu_openFirefoxView {
display: none;
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/d72c2984baf0ba3a1234ab4e60427860ad9f522b...9507b27a899d42091c8d4441c1689820a3480e8c
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/d72c2984baf0ba3a1234ab4e60427860ad9f522b...9507b27a899d42091c8d4441c1689820a3480e8c
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240918/ba1cc1d6/attachment-0001.htm>
More information about the tbb-commits
mailing list