Bug 1964835 - Part 1: Remove shopping actors and globals. r=shopping-reviewers,frontend-codestyle-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D248147
This commit is contained in:
committed by
fchasen@mozilla.com
parent
81b10f5667
commit
12e8ffb3f0
@@ -619,8 +619,6 @@ var gBrowserInit = {
|
||||
|
||||
CaptivePortalWatcher.delayedStartup();
|
||||
|
||||
ShoppingSidebarManager.ensureInitialized();
|
||||
|
||||
SessionStore.promiseAllWindowsRestored.then(() => {
|
||||
this._schedulePerWindowIdleTasks();
|
||||
document.documentElement.setAttribute("sessionrestored", "true");
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
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);
|
||||
}
|
||||
|
||||
window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
|
||||
|
||||
@@ -82,8 +82,6 @@ ChromeUtils.defineESModuleGetters(this, {
|
||||
SessionStartup: "resource:///modules/sessionstore/SessionStartup.sys.mjs",
|
||||
SessionStore: "resource:///modules/sessionstore/SessionStore.sys.mjs",
|
||||
SharingUtils: "resource:///modules/SharingUtils.sys.mjs",
|
||||
ShoppingSidebarParent: "resource:///actors/ShoppingSidebarParent.sys.mjs",
|
||||
ShoppingSidebarManager: "resource:///actors/ShoppingSidebarParent.sys.mjs",
|
||||
ShortcutUtils: "resource://gre/modules/ShortcutUtils.sys.mjs",
|
||||
SiteDataManager: "resource:///modules/SiteDataManager.sys.mjs",
|
||||
SitePermissions: "resource:///modules/SitePermissions.sys.mjs",
|
||||
@@ -2917,10 +2915,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) {
|
||||
|
||||
@@ -140,8 +140,6 @@
|
||||
"SessionStartup",
|
||||
"SessionStore",
|
||||
"SharingUtils",
|
||||
"ShoppingSidebarParent",
|
||||
"ShoppingSidebarManager",
|
||||
"ShortcutUtils",
|
||||
"SiteDataManager",
|
||||
"SitePermissions",
|
||||
|
||||
@@ -62,7 +62,6 @@ category browser-idle-startup moz-src:///browser/components/tabbrowser/TabUnload
|
||||
category browser-idle-startup resource:///modules/GenAI.sys.mjs GenAI.init
|
||||
category browser-idle-startup resource:///modules/QuickSuggest.sys.mjs QuickSuggest.init
|
||||
category browser-idle-startup resource:///modules/UrlbarSearchTermsPersistence.sys.mjs UrlbarSearchTermsPersistence.init
|
||||
category browser-idle-startup resource:///modules/ShoppingUtils.sys.mjs ShoppingUtils.init
|
||||
category browser-idle-startup moz-src:///browser/components/search/SERPCategorization.sys.mjs SERPCategorization.init
|
||||
category browser-idle-startup resource://gre/modules/ContentRelevancyManager.sys.mjs ContentRelevancyManager.init
|
||||
category browser-idle-startup resource://gre/modules/ColorwayThemeMigration.sys.mjs ColorwayThemeMigration.maybeWarn
|
||||
@@ -89,7 +88,6 @@ category browser-quit-application-granted resource://gre/modules/PageThumbs.sys.
|
||||
category browser-quit-application-granted resource://gre/modules/NewTabUtils.sys.mjs NewTabUtils.uninit
|
||||
category browser-quit-application-granted resource://normandy/Normandy.sys.mjs Normandy.uninit
|
||||
category browser-quit-application-granted resource://gre/modules/RFPHelper.sys.mjs RFPHelper.uninit
|
||||
category browser-quit-application-granted resource:///modules/ShoppingUtils.sys.mjs ShoppingUtils.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
|
||||
|
||||
@@ -681,30 +681,6 @@ let JSWINDOWACTORS = {
|
||||
matches: ["about:studies*"],
|
||||
},
|
||||
|
||||
ShoppingSidebar: {
|
||||
parent: {
|
||||
esModuleURI: "resource:///actors/ShoppingSidebarParent.sys.mjs",
|
||||
},
|
||||
child: {
|
||||
esModuleURI: "resource:///actors/ShoppingSidebarChild.sys.mjs",
|
||||
events: {
|
||||
ContentReady: { wantUntrusted: true },
|
||||
PolledRequestMade: { wantUntrusted: true },
|
||||
// This is added so the actor instantiates immediately and makes
|
||||
// methods available to the page js on load.
|
||||
DOMDocElementInserted: {},
|
||||
ReportProductAvailable: { wantUntrusted: true },
|
||||
AdClicked: { wantUntrusted: true },
|
||||
AdImpression: { wantUntrusted: true },
|
||||
DisableShopping: { wantUntrusted: true },
|
||||
},
|
||||
},
|
||||
matches: ["about:shoppingsidebar"],
|
||||
remoteTypes: ["privilegedabout"],
|
||||
messageManagerGroups: ["shopping-sidebar", "browsers"],
|
||||
enablePreference: "browser.shopping.experience2023.enabled",
|
||||
},
|
||||
|
||||
SpeechDispatcher: {
|
||||
parent: {
|
||||
esModuleURI: "resource:///actors/SpeechDispatcherParent.sys.mjs",
|
||||
|
||||
@@ -53,8 +53,6 @@ const MAPPINGS = {
|
||||
"places-tree.js": "browser/components/places/content/places-tree.js",
|
||||
"places-menupopup.js":
|
||||
"browser/components/places/content/places-menupopup.js",
|
||||
"shopping-sidebar.js":
|
||||
"browser/components/shopping/content/shopping-sidebar.js",
|
||||
"viewSourceUtils.js":
|
||||
"toolkit/components/viewsource/content/viewSourceUtils.js",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user