Commit 37b46622 authored by Richard Pospesel's avatar Richard Pospesel Committed by Pier Angelo Vendrame
Browse files

BB 42037: Disable about:firefoxview page

parent abdbba7b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5773,6 +5773,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,
+0 −3
Original line number Diff line number Diff line
@@ -75,9 +75,6 @@ static const RedirEntry kRedirMap[] = {
         nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
         nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::IS_SECURE_CHROME_UI},
    {"firefoxview", "chrome://browser/content/firefoxview/firefoxview.html",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI |
         nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    {"policies", "chrome://browser/content/policies/aboutPolicies.html",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
    {"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.html",
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ pages = [
    'framecrashed',
    'logins',
    'loginsimportreport',
    'firefoxview',
    'messagepreview',
    'pocket-home',
    'pocket-saved',
+0 −1
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ DIRS += [
    "downloads",
    "enterprisepolicies",
    "extensions",
    "firefoxview",
    # Exclude "genai" component. tor-browser#44045.
    "messagepreview",
    "migration",
+5 −8
Original line number Diff line number Diff line
@@ -5189,16 +5189,13 @@
          this.selectedTab = newTab;
        } else {
          allTabsUnloaded = true;
          // all tabs are unloaded - show Firefox View if it's present, otherwise open a new tab
          if (FirefoxViewHandler.tab || FirefoxViewHandler.button) {
            FirefoxViewHandler.openTab("opentabs");
          } else {
          // We disable the firefoxview path in base browser. tor-browser#43900.
          // Might be resolved by bugzilla bug 1989429.
          this.selectedTab = this.addTrustedTab(BROWSER_NEW_TAB_URL, {
            skipAnimation: true,
          });
        }
      }
      }
      let memoryUsageBeforeUnload = await getTotalMemoryUsage();
      let timeBeforeUnload = performance.now();
      let numberOfTabsUnloaded = 0;
Loading