morgan pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
-
64b4b81e
by Henry Wilkes at 2024-09-18T18:16:55+00:00
-
7414b290
by Henry Wilkes at 2024-09-18T18:16:56+00:00
3 changed files:
- browser/app/profile/001-base-profile.js
- browser/base/content/browser.js
- browser/themes/shared/tabbrowser/tabs.css
Changes:
... | ... | @@ -17,9 +17,6 @@ pref("startup.homepage_welcome_url.additional", ""); |
17 | 17 | // Disable Firefox Welcome Dialog
|
18 | 18 | pref("browser.aboutwelcome.enabled", false);
|
19 | 19 | |
20 | -// Disable the Firefox View tab (tor-browser#41876)
|
|
21 | -pref("browser.tabs.firefox-view", false, locked);
|
|
22 | - |
|
23 | 20 | #if MOZ_UPDATE_CHANNEL == release
|
24 | 21 | // tor-browser#42640: Disable Firefox Flame buttond due to unknown interactions with New Identity
|
25 | 22 | pref("browser.privatebrowsing.resetPBM.enabled", false, locked);
|
... | ... | @@ -8079,6 +8079,11 @@ var FirefoxViewHandler = { |
8079 | 8079 | }
|
8080 | 8080 | },
|
8081 | 8081 | openTab(section) {
|
8082 | + if (AppConstants.BASE_BROWSER_VERSION) {
|
|
8083 | + // about:firefoxview is disabled. tor-browser#42037.
|
|
8084 | + return;
|
|
8085 | + }
|
|
8086 | + |
|
8082 | 8087 | if (!CustomizableUI.getPlacementOfWidget(this.BUTTON_ID)) {
|
8083 | 8088 | CustomizableUI.addWidgetToArea(
|
8084 | 8089 | this.BUTTON_ID,
|
... | ... | @@ -747,17 +747,28 @@ |
747 | 747 | |
748 | 748 | /* Firefox View button and menu item */
|
749 | 749 | |
750 | -:root:not([privatebrowsingmode], [firefoxviewhidden]) :is(toolbarbutton, toolbarpaletteitem) + #tabbrowser-tabs,
|
|
751 | -:root[privatebrowsingmode]:not([firefoxviewhidden]) :is(
|
|
750 | +/* about:firefoxview is disabled in Base Browser. See tor-browser#42037.
|
|
751 | + * Therefore we always hide #firefox-view-button, regardless of private
|
|
752 | + * browsing. Here we only want to draw the border if there is a non-hidden
|
|
753 | + * toolbar item before the tabs.
|
|
754 | + * NOTE: Expect merge conflict from bugzilla bug 1917595 and bug 1917599. In
|
|
755 | + * these cases we want to keep our selector as-is. */
|
|
756 | +:root :is(
|
|
752 | 757 | toolbarbutton:not(#firefox-view-button),
|
753 | 758 | toolbarpaletteitem:not(#wrapper-firefox-view-button)
|
754 | -) + #tabbrowser-tabs {
|
|
759 | +) ~ #tabbrowser-tabs {
|
|
755 | 760 | border-inline-start: 1px solid color-mix(in srgb, currentColor 25%, transparent);
|
756 | 761 | padding-inline-start: calc(var(--tab-overflow-pinned-tabs-width) + 2px);
|
757 | 762 | margin-inline-start: 2px;
|
758 | 763 | }
|
759 | 764 | |
760 | -:root[privatebrowsingmode] :is(#firefox-view-button, #menu_openFirefoxView) {
|
|
765 | +/* about:firefoxview is disabled in Base Browser. Always hide the toolbar button
|
|
766 | + * and menu item regardless of private browsing. See tor-browser#42037.
|
|
767 | + * NOTE: We also hide #wrapper-firefox-view-button, which is used during
|
|
768 | + * customization.
|
|
769 | + * NOTE: Expect merge conflict from bugzilla bug 1903812 and bug 1917599. In
|
|
770 | + * these cases we want to keep our selector as-is. */
|
|
771 | +#firefox-view-button, #wrapper-firefox-view-button, #menu_openFirefoxView {
|
|
761 | 772 | display: none;
|
762 | 773 | }
|
763 | 774 |