Skip to content
Snippets Groups Projects
Commit 50860b85 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern: Committed by Richard Pospesel
Browse files

Bug 40788: Prevent nsIURLQueryStrippingListService from calling home when it is not enabled.

The URL query stripping service is enabled only in nightly builds,
still it is initialized and remote settings are downloaded.
This adds a condition that prevents the service from being initialized
if disabled.

Upstream Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1812594
We should remove this patch if Mozilla decides that this is a problem
also for them, or if they do not but we decide to use the feature.
parent 2d0ff6c0
Branches
No related tags found
1 merge request!573Bug 41670: Rebase base-browser alpha to 102.9.0esr
......@@ -2573,11 +2573,23 @@ BrowserGlue.prototype = {
{
task: () => {
// tor-browser#40788: Do not initialize
// nsIURLQueryStrippingListService to prevent it from initializing
// its remote settings if it's disabled.
// See also https://bugzilla.mozilla.org/show_bug.cgi?id=1812594
let enabledPref = "privacy.query_stripping.enabled";
let enabledPBMPref = "privacy.query_stripping.enabled.pbmode";
if (
Services.prefs.getBoolPref(enabledPref, false) ||
Services.prefs.getBoolPref(enabledPBMPref, false)
) {
// Init the url query stripping list.
let urlQueryStrippingListService = Cc[
"@mozilla.org/query-stripping-list-service;1"
].getService(Ci.nsIURLQueryStrippingListService);
urlQueryStrippingListService.init();
}
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment