Commit 9a87b133 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

BB 42831: Remove the shopping components.

parent 36277bed
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -650,8 +650,6 @@ var gBrowserInit = {

    CaptivePortalWatcher.delayedStartup();

    ShoppingSidebarManager.ensureInitialized();

    SessionStore.promiseAllWindowsRestored.then(() => {
      this._schedulePerWindowIdleTasks();
      document.documentElement.setAttribute("sessionrestored", "true");
+2 −6
Original line number Diff line number Diff line
@@ -72,8 +72,8 @@ ChromeUtils.defineESModuleGetters(this, {
  SearchUIUtils: "resource:///modules/SearchUIUtils.sys.mjs",
  SessionStartup: "resource:///modules/sessionstore/SessionStartup.sys.mjs",
  SessionStore: "resource:///modules/sessionstore/SessionStore.sys.mjs",
  ShoppingSidebarParent: "resource:///actors/ShoppingSidebarParent.sys.mjs",
  ShoppingSidebarManager: "resource:///actors/ShoppingSidebarParent.sys.mjs",
  // Removed ShoppingSidebarParent and ShoppingSidebarManager.
  // tor-browser#42831.
  ShortcutUtils: "resource://gre/modules/ShortcutUtils.sys.mjs",
  SiteDataManager: "resource:///modules/SiteDataManager.sys.mjs",
  SitePermissions: "resource:///modules/SitePermissions.sys.mjs",
@@ -4068,10 +4068,6 @@ var TabsProgressListener = {
      return;
    }

    // Some shops use pushState to move between individual products, so
    // the shopping code needs to be told about all of these.
    ShoppingSidebarManager.onLocationChange(aBrowser, aLocationURI, aFlags);

    // Filter out location changes caused by anchor navigation
    // or history.push/pop/replaceState.
    if (aFlags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT) {
+0 −2
Original line number Diff line number Diff line
@@ -158,8 +158,6 @@
  "SearchUIUtils",
  "SessionStartup",
  "SessionStore",
  "ShoppingSidebarParent",
  "ShoppingSidebarManager",
  "ShortcutUtils",
  "SiteDataManager",
  "SitePermissions",
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@
  Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/shopping/shopping-sidebar.js", this);
  // Removed shopping-sidebar.js. tor-browser#42831.

  window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
  window.onunload = gBrowserInit.onUnload.bind(gBrowserInit);
+2 −0
Original line number Diff line number Diff line
@@ -388,6 +388,8 @@
                <image class="urlbar-icon" id="translations-button-circle-arrows" />
                <html:span id="translations-button-locale" aria-hidden="true" />
              </hbox>
              <!-- #shopping-sidebar-button should remain hidden.
                 - tor-browser#42831. -->
              <hbox id="shopping-sidebar-button"
                  class="urlbar-page-action"
                  role="button"
Loading