morgan pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

12 changed files:

Changes:

  • browser/base/content/browser-init.js
    ... ... @@ -613,8 +613,6 @@ var gBrowserInit = {
    613 613
     
    
    614 614
         CaptivePortalWatcher.delayedStartup();
    
    615 615
     
    
    616
    -    ShoppingSidebarManager.ensureInitialized();
    
    617
    -
    
    618 616
         SessionStore.promiseAllWindowsRestored.then(() => {
    
    619 617
           this._schedulePerWindowIdleTasks();
    
    620 618
           document.documentElement.setAttribute("sessionrestored", "true");
    

  • browser/base/content/browser.js
    ... ... @@ -39,7 +39,7 @@ ChromeUtils.defineESModuleGetters(this, {
    39 39
       E10SUtils: "resource://gre/modules/E10SUtils.sys.mjs",
    
    40 40
       ExtensionsUI: "resource:///modules/ExtensionsUI.sys.mjs",
    
    41 41
       HomePage: "resource:///modules/HomePage.sys.mjs",
    
    42
    -  isProductURL: "chrome://global/content/shopping/ShoppingProduct.mjs",
    
    42
    +  // Removed isProductURL from ShoppingProduct.mjs. tor-browser#42831.
    
    43 43
       LightweightThemeConsumer:
    
    44 44
         "resource://gre/modules/LightweightThemeConsumer.sys.mjs",
    
    45 45
       LoginHelper: "resource://gre/modules/LoginHelper.sys.mjs",
    
    ... ... @@ -71,8 +71,8 @@ ChromeUtils.defineESModuleGetters(this, {
    71 71
       SearchUIUtils: "resource:///modules/SearchUIUtils.sys.mjs",
    
    72 72
       SessionStartup: "resource:///modules/sessionstore/SessionStartup.sys.mjs",
    
    73 73
       SessionStore: "resource:///modules/sessionstore/SessionStore.sys.mjs",
    
    74
    -  ShoppingSidebarParent: "resource:///actors/ShoppingSidebarParent.sys.mjs",
    
    75
    -  ShoppingSidebarManager: "resource:///actors/ShoppingSidebarParent.sys.mjs",
    
    74
    +  // Removed ShoppingSidebarParent and ShoppingSidebarManager.
    
    75
    +  // tor-browser#42831.
    
    76 76
       ShortcutUtils: "resource://gre/modules/ShortcutUtils.sys.mjs",
    
    77 77
       SiteDataManager: "resource:///modules/SiteDataManager.sys.mjs",
    
    78 78
       SitePermissions: "resource:///modules/SitePermissions.sys.mjs",
    
    ... ... @@ -4340,10 +4340,6 @@ var TabsProgressListener = {
    4340 4340
           return;
    
    4341 4341
         }
    
    4342 4342
     
    
    4343
    -    // Some shops use pushState to move between individual products, so
    
    4344
    -    // the shopping code needs to be told about all of these.
    
    4345
    -    ShoppingSidebarManager.onLocationChange(aBrowser, aLocationURI, aFlags);
    
    4346
    -
    
    4347 4343
         // Filter out location changes caused by anchor navigation
    
    4348 4344
         // or history.push/pop/replaceState.
    
    4349 4345
         if (aFlags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT) {
    

  • browser/base/content/browser.js.globals
    ... ... @@ -130,7 +130,6 @@
    130 130
       "E10SUtils",
    
    131 131
       "ExtensionsUI",
    
    132 132
       "HomePage",
    
    133
    -  "isProductURL",
    
    134 133
       "LightweightThemeConsumer",
    
    135 134
       "LoginHelper",
    
    136 135
       "LoginManagerParent",
    
    ... ... @@ -161,8 +160,6 @@
    161 160
       "SearchUIUtils",
    
    162 161
       "SessionStartup",
    
    163 162
       "SessionStore",
    
    164
    -  "ShoppingSidebarParent",
    
    165
    -  "ShoppingSidebarManager",
    
    166 163
       "ShortcutUtils",
    
    167 164
       "SiteDataManager",
    
    168 165
       "SitePermissions",
    

  • browser/base/content/browser.xhtml
    ... ... @@ -127,7 +127,7 @@
    127 127
       Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this);
    
    128 128
       Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this);
    
    129 129
       Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this);
    
    130
    -  Services.scriptloader.loadSubScript("chrome://browser/content/shopping/shopping-sidebar.js", this);
    
    130
    +  // Removed shopping-sidebar.js. tor-browser#42831.
    
    131 131
       Services.scriptloader.loadSubScript("chrome://browser/content/languageNotification.js", this);
    
    132 132
     
    
    133 133
       window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
    

  • browser/base/content/navigator-toolbox.inc.xhtml
    ... ... @@ -380,6 +380,8 @@
    380 380
                     <image class="urlbar-icon" id="translations-button-circle-arrows" />
    
    381 381
                     <html:span id="translations-button-locale" aria-hidden="true" />
    
    382 382
                   </hbox>
    
    383
    +              <!-- #shopping-sidebar-button should remain hidden.
    
    384
    +                 - tor-browser#42831. -->
    
    383 385
                   <hbox id="shopping-sidebar-button"
    
    384 386
                       class="urlbar-page-action"
    
    385 387
                       role="button"
    

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -86,7 +86,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
    86 86
       SessionStore: "resource:///modules/sessionstore/SessionStore.sys.mjs",
    
    87 87
       ShellService: "resource:///modules/ShellService.sys.mjs",
    
    88 88
       ShortcutUtils: "resource://gre/modules/ShortcutUtils.sys.mjs",
    
    89
    -  ShoppingUtils: "resource:///modules/ShoppingUtils.sys.mjs",
    
    89
    +  // Removed ShoppingUtils. tor-browser#42831.
    
    90 90
       SpecialMessageActions:
    
    91 91
         "resource://messaging-system/lib/SpecialMessageActions.sys.mjs",
    
    92 92
       TRRRacer: "resource:///modules/TRRPerformance.sys.mjs",
    
    ... ... @@ -481,19 +481,7 @@ let JSWINDOWACTORS = {
    481 481
         matches: ["about:tabcrashed*"],
    
    482 482
       },
    
    483 483
     
    
    484
    -  AboutWelcomeShopping: {
    
    485
    -    parent: {
    
    486
    -      esModuleURI: "resource:///actors/AboutWelcomeParent.sys.mjs",
    
    487
    -    },
    
    488
    -    child: {
    
    489
    -      esModuleURI: "resource:///actors/AboutWelcomeChild.sys.mjs",
    
    490
    -      events: {
    
    491
    -        Update: {},
    
    492
    -      },
    
    493
    -    },
    
    494
    -    matches: ["about:shoppingsidebar"],
    
    495
    -    remoteTypes: ["privilegedabout"],
    
    496
    -  },
    
    484
    +  // Removed AboutWelcomeShopping. tor-browser#42831.
    
    497 485
     
    
    498 486
       AboutWelcome: {
    
    499 487
         parent: {
    
    ... ... @@ -890,27 +878,7 @@ let JSWINDOWACTORS = {
    890 878
         matches: ["about:studies*"],
    
    891 879
       },
    
    892 880
     
    
    893
    -  ShoppingSidebar: {
    
    894
    -    parent: {
    
    895
    -      esModuleURI: "resource:///actors/ShoppingSidebarParent.sys.mjs",
    
    896
    -    },
    
    897
    -    child: {
    
    898
    -      esModuleURI: "resource:///actors/ShoppingSidebarChild.sys.mjs",
    
    899
    -      events: {
    
    900
    -        ContentReady: { wantUntrusted: true },
    
    901
    -        PolledRequestMade: { wantUntrusted: true },
    
    902
    -        // This is added so the actor instantiates immediately and makes
    
    903
    -        // methods available to the page js on load.
    
    904
    -        DOMDocElementInserted: {},
    
    905
    -        ReportProductAvailable: { wantUntrusted: true },
    
    906
    -        AdClicked: { wantUntrusted: true },
    
    907
    -        AdImpression: { wantUntrusted: true },
    
    908
    -        DisableShopping: { wantUntrusted: true },
    
    909
    -      },
    
    910
    -    },
    
    911
    -    matches: ["about:shoppingsidebar"],
    
    912
    -    remoteTypes: ["privilegedabout"],
    
    913
    -  },
    
    881
    +  // Removed ShoppingSidebar. tor-browser#42831.
    
    914 882
     
    
    915 883
       SpeechDispatcher: {
    
    916 884
         parent: {
    
    ... ... @@ -2276,7 +2244,6 @@ BrowserGlue.prototype = {
    2276 2244
             }
    
    2277 2245
           },
    
    2278 2246
           () => lazy.RFPHelper.uninit(),
    
    2279
    -      () => lazy.ShoppingUtils.uninit(),
    
    2280 2247
           () => {
    
    2281 2248
             if (AppConstants.MOZ_UPDATER) {
    
    2282 2249
               lazy.UpdateListener.reset();
    
    ... ... @@ -3234,13 +3201,6 @@ BrowserGlue.prototype = {
    3234 3201
             },
    
    3235 3202
           },
    
    3236 3203
     
    
    3237
    -      {
    
    3238
    -        name: "ShoppingUtils.init",
    
    3239
    -        task: () => {
    
    3240
    -          lazy.ShoppingUtils.init();
    
    3241
    -        },
    
    3242
    -      },
    
    3243
    -
    
    3244 3204
           {
    
    3245 3205
             // Starts the JSOracle process for ORB JavaScript validation, if it hasn't started already.
    
    3246 3206
             name: "start-orb-javascript-oracle",
    

  • browser/components/about/AboutRedirector.cpp
    ... ... @@ -96,12 +96,7 @@ static const RedirEntry kRedirMap[] = {
    96 96
         {"sessionrestore", "chrome://browser/content/aboutSessionRestore.xhtml",
    
    97 97
          nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
    
    98 98
              nsIAboutModule::IS_SECURE_CHROME_UI},
    
    99
    -    {"shoppingsidebar", "chrome://browser/content/shopping/shopping.html",
    
    100
    -     nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
    
    101
    -         nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
    
    102
    -         nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    103
    -         nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
    
    104
    -         nsIAboutModule::IS_SECURE_CHROME_UI},
    
    99
    +    // Removed about:shoppingsidebar. tor-browser#42831.
    
    105 100
         {"tabcrashed", "chrome://browser/content/aboutTabCrashed.xhtml",
    
    106 101
          nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    107 102
              nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    

  • browser/components/about/components.conf
    ... ... @@ -24,7 +24,7 @@ pages = [
    24 24
         'rights',
    
    25 25
         'sessionrestore',
    
    26 26
         'settings',
    
    27
    -    'shoppingsidebar',
    
    27
    +    # Removed 'shoppingsidebar'. tor-browser#42831.
    
    28 28
         'tabcrashed',
    
    29 29
         'unloads',
    
    30 30
         'welcome',
    

  • browser/components/shopping/jar.mn
    ... ... @@ -2,30 +2,4 @@
    2 2
     # License, v. 2.0. If a copy of the MPL was not distributed with this
    
    3 3
     # file, You can obtain one at http://mozilla.org/MPL/2.0/.
    
    4 4
     
    
    5
    -browser.jar:
    
    6
    -    content/browser/shopping/onboarding.mjs (content/onboarding.mjs)
    
    7
    -    content/browser/shopping/shopping.html (content/shopping.html)
    
    8
    -    content/browser/shopping/shopping-container.css (content/shopping-container.css)
    
    9
    -    content/browser/shopping/shopping-page.css (content/shopping-page.css)
    
    10
    -    content/browser/shopping/shopping-sidebar.js (content/shopping-sidebar.js)
    
    11
    -    content/browser/shopping/shopping-message-bar.css (content/shopping-message-bar.css)
    
    12
    -    content/browser/shopping/shopping-message-bar.mjs (content/shopping-message-bar.mjs)
    
    13
    -    content/browser/shopping/highlights.mjs (content/highlights.mjs)
    
    14
    -    content/browser/shopping/highlight-item.css (content/highlight-item.css)
    
    15
    -    content/browser/shopping/highlight-item.mjs (content/highlight-item.mjs)
    
    16
    -    content/browser/shopping/shopping-card.css (content/shopping-card.css)
    
    17
    -    content/browser/shopping/shopping-card.mjs (content/shopping-card.mjs)
    
    18
    -    content/browser/shopping/letter-grade.css (content/letter-grade.css)
    
    19
    -    content/browser/shopping/letter-grade.mjs (content/letter-grade.mjs)
    
    20
    -    content/browser/shopping/settings.mjs (content/settings.mjs)
    
    21
    -    content/browser/shopping/settings.css (content/settings.css)
    
    22
    -    content/browser/shopping/shopping-container.mjs (content/shopping-container.mjs)
    
    23
    -    content/browser/shopping/adjusted-rating.mjs (content/adjusted-rating.mjs)
    
    24
    -    content/browser/shopping/reliability.mjs (content/reliability.mjs)
    
    25
    -    content/browser/shopping/analysis-explainer.css (content/analysis-explainer.css)
    
    26
    -    content/browser/shopping/analysis-explainer.mjs (content/analysis-explainer.mjs)
    
    27
    -    content/browser/shopping/unanalyzed.css (content/unanalyzed.css)
    
    28
    -    content/browser/shopping/unanalyzed.mjs (content/unanalyzed.mjs)
    
    29
    -    content/browser/shopping/recommended-ad.css (content/recommended-ad.css)
    
    30
    -    content/browser/shopping/recommended-ad.mjs (content/recommended-ad.mjs)
    
    31
    -    content/browser/shopping/assets/ (content/assets/*)
    5
    +# Removed desktop shopping-sidebar content. tor-browser#42831.

  • browser/components/shopping/moz.build
    ... ... @@ -6,14 +6,8 @@
    6 6
     
    
    7 7
     JAR_MANIFESTS += ["jar.mn"]
    
    8 8
     
    
    9
    -FINAL_TARGET_FILES.actors += [
    
    10
    -    "ShoppingSidebarChild.sys.mjs",
    
    11
    -    "ShoppingSidebarParent.sys.mjs",
    
    12
    -]
    
    13
    -
    
    14
    -EXTRA_JS_MODULES += [
    
    15
    -    "ShoppingUtils.sys.mjs",
    
    16
    -]
    
    9
    +# Removed ShoppingSidebarParent, ShoppingSidebarChild and ShoppingUtils.
    
    10
    +# tor-browser#42831.
    
    17 11
     
    
    18 12
     BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.toml"]
    
    19 13
     
    

  • toolkit/components/shopping/jar.mn
    ... ... @@ -2,19 +2,4 @@
    2 2
     # License, v. 2.0. If a copy of the MPL was not distributed with this
    
    3 3
     # file, You can obtain one at http://mozilla.org/MPL/2.0/.
    
    4 4
     
    
    5
    -toolkit.jar:
    
    6
    -  content/global/shopping/ProductConfig.mjs (content/ProductConfig.mjs)
    
    7
    -  content/global/shopping/ProductValidator.sys.mjs (content/ProductValidator.sys.mjs)
    
    8
    -  content/global/shopping/ShoppingProduct.mjs (content/ShoppingProduct.mjs)
    
    9
    -  content/global/shopping/analysis_response.schema.json (schemas/analysis_response.schema.json)
    
    10
    -  content/global/shopping/recommendations_response.schema.json (schemas/recommendations_response.schema.json)
    
    11
    -  content/global/shopping/analysis_request.schema.json (schemas/analysis_request.schema.json)
    
    12
    -  content/global/shopping/recommendations_request.schema.json (schemas/recommendations_request.schema.json)
    
    13
    -  content/global/shopping/attribution_response.schema.json (schemas/attribution_response.schema.json)
    
    14
    -  content/global/shopping/attribution_request.schema.json (schemas/attribution_request.schema.json)
    
    15
    -  content/global/shopping/reporting_response.schema.json (schemas/reporting_response.schema.json)
    
    16
    -  content/global/shopping/reporting_request.schema.json (schemas/reporting_request.schema.json)
    
    17
    -  content/global/shopping/analysis_status_request.schema.json (schemas/analysis_status_request.schema.json)
    
    18
    -  content/global/shopping/analysis_status_response.schema.json (schemas/analysis_status_response.schema.json)
    
    19
    -  content/global/shopping/analyze_request.schema.json (schemas/analyze_request.schema.json)
    
    20
    -  content/global/shopping/analyze_response.schema.json (schemas/analyze_response.schema.json)
    5
    +# Removed ShoppingProduct modules and schema JSONs. tor-browser#42831.

  • toolkit/modules/RemotePageAccessManager.sys.mjs
    ... ... @@ -216,21 +216,7 @@ export let RemotePageAccessManager = {
    216 216
           ],
    
    217 217
           RPMRecordTelemetryEvent: ["*"],
    
    218 218
         },
    
    219
    -    "about:shoppingsidebar": {
    
    220
    -      RPMSetPref: [
    
    221
    -        "browser.shopping.experience2023.optedIn",
    
    222
    -        "browser.shopping.experience2023.active",
    
    223
    -        "browser.shopping.experience2023.ads.userEnabled",
    
    224
    -        "browser.shopping.experience2023.sidebarClosedCount",
    
    225
    -        "browser.shopping.experience2023.showKeepSidebarClosedMessage",
    
    226
    -        "browser.shopping.experience2023.autoOpen.userEnabled",
    
    227
    -      ],
    
    228
    -      RPMGetFormatURLPref: ["app.support.baseURL"],
    
    229
    -      RPMGetIntPref: ["browser.shopping.experience2023.sidebarClosedCount"],
    
    230
    -      RPMGetBoolPref: [
    
    231
    -        "browser.shopping.experience2023.showKeepSidebarClosedMessage",
    
    232
    -      ],
    
    233
    -    },
    
    219
    +    // Removed about:shoppingsidebar. tor-browser#42831.
    
    234 220
         "about:tabcrashed": {
    
    235 221
           RPMSendAsyncMessage: ["Load", "closeTab", "restoreTab", "restoreAll"],
    
    236 222
           RPMAddMessageListener: ["*"],