Pier Angelo Vendrame pushed to branch tor-browser-102.7.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
43da6d54
by Pier Angelo Vendrame at 2023-01-30T14:40:42+01:00
-
e8921475
by Pier Angelo Vendrame at 2023-01-30T14:41:32+01:00
2 changed files:
Changes:
... | ... | @@ -178,6 +178,15 @@ pref("browser.newtabpage.activity-stream.default.sites", ""); |
178 | 178 | pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
179 | 179 | pref("browser.newtabpage.activity-stream.telemetry", false);
|
180 | 180 | |
181 | +// tor-browser#40788: disable AS's calls to home.
|
|
182 | +// Notice that null is between quotes because it is a JSON string.
|
|
183 | +// Keep checked firefox.js to see if new entries are added.
|
|
184 | +pref("browser.newtabpage.activity-stream.asrouter.providers.cfr", "null");
|
|
185 | +pref("browser.newtabpage.activity-stream.asrouter.providers.whats-new-panel", "null");
|
|
186 | +pref("browser.newtabpage.activity-stream.asrouter.providers.message-groups", "null");
|
|
187 | +pref("browser.newtabpage.activity-stream.asrouter.providers.snippets", "null");
|
|
188 | +pref("browser.newtabpage.activity-stream.asrouter.providers.messaging-experiments", "null");
|
|
189 | + |
|
181 | 190 | // Disable fetching asrouter.ftl and related console errors (tor-browser#40763).
|
182 | 191 | pref("browser.newtabpage.activity-stream.asrouter.useRemoteL10n", false);
|
183 | 192 |
... | ... | @@ -2698,11 +2698,23 @@ BrowserGlue.prototype = { |
2698 | 2698 | |
2699 | 2699 | {
|
2700 | 2700 | task: () => {
|
2701 | - // Init the url query stripping list.
|
|
2702 | - let urlQueryStrippingListService = Cc[
|
|
2703 | - "@mozilla.org/query-stripping-list-service;1"
|
|
2704 | - ].getService(Ci.nsIURLQueryStrippingListService);
|
|
2705 | - urlQueryStrippingListService.init();
|
|
2701 | + // tor-browser#40788: Do not initialize
|
|
2702 | + // nsIURLQueryStrippingListService to prevent it from initializing
|
|
2703 | + // its remote settings if it's disabled.
|
|
2704 | + // See also https://bugzilla.mozilla.org/show_bug.cgi?id=1812594
|
|
2705 | + let enabledPref = "privacy.query_stripping.enabled";
|
|
2706 | + let enabledPBMPref = "privacy.query_stripping.enabled.pbmode";
|
|
2707 | + |
|
2708 | + if (
|
|
2709 | + Services.prefs.getBoolPref(enabledPref, false) ||
|
|
2710 | + Services.prefs.getBoolPref(enabledPBMPref, false)
|
|
2711 | + ) {
|
|
2712 | + // Init the url query stripping list.
|
|
2713 | + let urlQueryStrippingListService = Cc[
|
|
2714 | + "@mozilla.org/query-stripping-list-service;1"
|
|
2715 | + ].getService(Ci.nsIURLQueryStrippingListService);
|
|
2716 | + urlQueryStrippingListService.init();
|
|
2717 | + }
|
|
2706 | 2718 | },
|
2707 | 2719 | },
|
2708 | 2720 |