Commit f7e0a610 authored by henry's avatar henry
Browse files

fixup! BB 42037: Disable about:firefoxview page

TB 43900: Open a new tab rather than about:firefoxview when unloading
the last tab.
parent ce3eaa51
Loading
Loading
Loading
Loading
+2 −5
Changes for browser/components/tabbrowser/content/tabbrowser.js: 2 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -5185,16 +5185,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;