Commit d42b3119 authored by henry's avatar henry Committed by clairehurst
Browse files

BB 31575: Disable Firefox Home (Activity Stream)

Treat about:blank as the default home page and new tab page.

BB 43886: Disable the newtab component/addon.

Bug 41624: Disable about:pocket-* pages.

Bug 40144: Redirect about:privatebrowsing to the user's home
parent f28b2dcc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -32,8 +32,7 @@ with Files("WebRTCChild.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Site Permissions")

FINAL_TARGET_FILES.actors += [
    "AboutNewTabChild.sys.mjs",
    "AboutNewTabParent.sys.mjs",
    # Remove newtab actors. tor-browser#43886.
    "AboutPocketChild.sys.mjs",
    "AboutPocketParent.sys.mjs",
    "AboutPrivateBrowsingChild.sys.mjs",
+0 −3
Original line number Diff line number Diff line
@@ -75,7 +75,6 @@ ChromeUtils.defineESModuleGetters(this, {
  ResetPBMPanel: "resource:///modules/ResetPBMPanel.sys.mjs",
  SafeBrowsing: "resource://gre/modules/SafeBrowsing.sys.mjs",
  Sanitizer: "resource:///modules/Sanitizer.sys.mjs",
  SaveToPocket: "chrome://pocket/content/SaveToPocket.sys.mjs",
  ScreenshotsUtils: "resource:///modules/ScreenshotsUtils.sys.mjs",
  SearchUIUtils: "moz-src:///browser/components/search/SearchUIUtils.sys.mjs",
  SelectableProfileService:
@@ -2240,8 +2239,6 @@ var XULBrowserWindow = {

    BrowserPageActions.onLocationChange();

    SaveToPocket.onLocationChange(window);

    UrlbarProviderSearchTips.onLocationChange(
      window,
      aLocationURI,
+0 −1
Original line number Diff line number Diff line
@@ -134,7 +134,6 @@
  "ResetPBMPanel",
  "SafeBrowsing",
  "Sanitizer",
  "SaveToPocket",
  "ScreenshotsUtils",
  "SearchUIUtils",
  "SessionStartup",
+1 −4
Original line number Diff line number Diff line
@@ -15,9 +15,8 @@ category browser-before-ui-startup resource:///modules/BuiltInThemes.sys.mjs Bui
#ifdef MOZ_NORMANDY
category browser-before-ui-startup resource://normandy/Normandy.sys.mjs Normandy.init
#endif
category browser-before-ui-startup chrome://pocket/content/SaveToPocket.sys.mjs SaveToPocket.init
category browser-before-ui-startup resource:///modules/ResetPBMPanel.sys.mjs ResetPBMPanel.init
category browser-before-ui-startup resource:///modules/AboutHomeStartupCache.sys.mjs AboutHomeStartupCache.init
# newtab component is disabled. tor-browser#43886
category browser-before-ui-startup resource:///modules/AccountsGlue.sys.mjs AccountsGlue.init

# Browser window lifecycle consumers
@@ -37,7 +36,6 @@ category browser-window-delayed-startup resource:///modules/taskbartabs/TaskbarT

# App startup consumers

category browser-first-window-ready resource:///modules/AboutNewTab.sys.mjs AboutNewTab.init
category browser-first-window-ready resource:///modules/ContentCrashHandlers.sys.mjs TabCrashHandler.init
category browser-first-window-ready resource:///modules/ProcessHangMonitor.sys.mjs ProcessHangMonitor.init
category browser-first-window-ready resource://gre/modules/PageThumbs.sys.mjs PageThumbs.init
@@ -90,7 +88,6 @@ category browser-quit-application-granted resource://gre/modules/NewTabUtils.sys
category browser-quit-application-granted resource://normandy/Normandy.sys.mjs Normandy.uninit
#endif
category browser-quit-application-granted resource://gre/modules/RFPHelper.sys.mjs RFPHelper.uninit
category browser-quit-application-granted resource:///modules/asrouter/ASRouterNewTabHook.sys.mjs ASRouterNewTabHook.destroy
category browser-quit-application-granted moz-src:///browser/components/search/SERPCategorization.sys.mjs SERPCategorization.uninit
category browser-quit-application-granted moz-src:///browser/components/search/SearchSERPTelemetry.sys.mjs SearchSERPTelemetry.uninit
#ifdef MOZ_UPDATER
+2 −15
Original line number Diff line number Diff line
@@ -8,12 +8,9 @@ import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";
const lazy = {};

ChromeUtils.defineESModuleGetters(lazy, {
  AboutHomeStartupCache: "resource:///modules/AboutHomeStartupCache.sys.mjs",
  // newtab component is disabled. tor-browser#43886
  AWToolbarButton: "resource:///modules/aboutwelcome/AWToolbarUtils.sys.mjs",
  ASRouter: "resource:///modules/asrouter/ASRouter.sys.mjs",
  ASRouterDefaultConfig:
    "resource:///modules/asrouter/ASRouterDefaultConfig.sys.mjs",
  ASRouterNewTabHook: "resource:///modules/asrouter/ASRouterNewTabHook.sys.mjs",
  AddonManager: "resource://gre/modules/AddonManager.sys.mjs",
  BackupService: "resource:///modules/backup/BackupService.sys.mjs",
  BrowserSearchTelemetry:
@@ -396,10 +393,7 @@ BrowserGlue.prototype = {

  // cleanup (called on application shutdown)
  _dispose: function BG__dispose() {
    // AboutHomeStartupCache might write to the cache during
    // quit-application-granted, so we defer uninitialization
    // until here.
    lazy.AboutHomeStartupCache.uninit();
    // newtab component is disabled. tor-browser#43886

    if (this._lateTasksIdleObserver) {
      this._userIdleService.removeIdleObserver(
@@ -1234,13 +1228,6 @@ BrowserGlue.prototype = {
        },
      },

      {
        name: "ASRouterNewTabHook.createInstance",
        task: () => {
          lazy.ASRouterNewTabHook.createInstance(lazy.ASRouterDefaultConfig());
        },
      },

      {
        name: "BackgroundUpdate",
        condition: AppConstants.MOZ_UPDATE_AGENT && AppConstants.MOZ_UPDATER,
Loading