0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 13:43:04 -05:00
LibreWolf/patches/sed-patches/stop-undesired-requests.patch

57 lines
2.9 KiB
Diff
Raw Normal View History

diff --git a/browser/components/newtab/data/content/activity-stream.bundle.js b/browser/components/newtab/data/content/activity-stream.bundle.js
2022-06-29 14:12:03 -05:00
index 3439547..7127947 100644
--- a/browser/components/newtab/data/content/activity-stream.bundle.js
+++ b/browser/components/newtab/data/content/activity-stream.bundle.js
@@ -1577,7 +1577,7 @@ class ASRouterAdminInner extends (external_React_default()).PureComponent {
label = /*#__PURE__*/external_React_default().createElement("span", null, "remote settings (", /*#__PURE__*/external_React_default().createElement("a", {
className: "providerUrl",
target: "_blank",
- href: "https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/nimbus-desktop-experiments/records",
2022-06-29 14:12:03 -05:00
+ href: "https://see.ticket.about.this.invalid",
rel: "noopener noreferrer"
}, "nimbus-desktop-experiments"), ")");
}
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
2022-06-29 14:12:03 -05:00
index db545cd..05f408c 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
2022-06-29 14:12:03 -05:00
@@ -2055,6 +2055,7 @@ pref("security.insecure_field_warning.ignore_local_ip_address", true);
// Remote settings preferences
pref("services.settings.poll_interval", 86400); // 24H
2022-06-29 14:12:03 -05:00
+pref("services.settings.server","https://see.ticket.about.this.invalid"); // LibreWolf override
// The percentage of clients who will report uptake telemetry as
2022-06-29 14:12:03 -05:00
// events instead of just a histogram. This only applies on Release;
diff --git a/services/settings/Utils.jsm b/services/settings/Utils.jsm
2022-06-29 14:12:03 -05:00
index 31ad77d..cca446b 100644
--- a/services/settings/Utils.jsm
+++ b/services/settings/Utils.jsm
2022-06-29 14:12:03 -05:00
@@ -60,6 +60,10 @@ XPCOMUtils.defineLazyGetter(this, "isRunningTests", () => {
// Overriding the server URL is normally disabled on Beta and Release channels,
// except under some conditions.
XPCOMUtils.defineLazyGetter(this, "allowServerURLOverride", () => {
+
+ // always allow this override for librewolf
+ return true;
+
if (!AppConstants.RELEASE_OR_BETA) {
// Always allow to override the server URL on Nightly/DevEdition.
return true;
diff --git a/toolkit/components/search/SearchUtils.jsm b/toolkit/components/search/SearchUtils.jsm
2022-06-29 14:12:03 -05:00
index 0bf60e5..bcb685e 100644
--- a/toolkit/components/search/SearchUtils.jsm
+++ b/toolkit/components/search/SearchUtils.jsm
2022-06-29 14:12:03 -05:00
@@ -158,9 +158,9 @@ var SearchUtils = {
ENGINES_URLS: {
"prod-main":
- "https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/search-config/records",
2022-06-29 14:12:03 -05:00
+ "https://see.ticket.about.this.invalid",
"prod-preview":
- "https://firefox.settings.services.mozilla.com/v1/buckets/main-preview/collections/search-config/records",
2022-06-29 14:12:03 -05:00
+ "https://see.ticket.about.this.invalid",
"stage-main":
"https://settings.stage.mozaws.net/v1/buckets/main/collections/search-config/records",
"stage-preview":