0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-08 13:50:07 -05:00

Use remote settings dumps

This commit is contained in:
Malte Jürgens 2024-08-01 22:13:40 +02:00
parent 4f27359b39
commit b97e2692f0
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -1,6 +1,6 @@
--- a/browser/components/asrouter/content/asrouter-admin.bundle.js --- a/browser/components/asrouter/content/asrouter-admin.bundle.js
+++ b/browser/components/asrouter/content/asrouter-admin.bundle.js +++ b/browser/components/asrouter/content/asrouter-admin.bundle.js
@@ -1641,7 +1641,7 @@ class ASRouterAdminInner extends (react__WEBPACK_IMPORTED_MODULE_1___default().P @@ -1650,7 +1650,7 @@ class ASRouterAdminInner extends (react__WEBPACK_IMPORTED_MODULE_1___default().P
label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, "remote settings (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("a", { label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, "remote settings (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("a", {
className: "providerUrl", className: "providerUrl",
target: "_blank", target: "_blank",
@ -21,9 +21,17 @@
if (!AppConstants.RELEASE_OR_BETA) { if (!AppConstants.RELEASE_OR_BETA) {
// Always allow to override the server URL on Nightly/DevEdition. // Always allow to override the server URL on Nightly/DevEdition.
return true; return true;
@@ -134,6 +137,7 @@ export var Utils = {
// Load dumps only if pulling data from the production server, or in tests.
return (
this.SERVER_URL == AppConstants.REMOTE_SETTINGS_SERVER_URL ||
+ this.SERVER_URL == "https://%.invalid" ||
lazy.isRunningTests
);
},
--- a/toolkit/components/search/SearchUtils.sys.mjs --- a/toolkit/components/search/SearchUtils.sys.mjs
+++ b/toolkit/components/search/SearchUtils.sys.mjs +++ b/toolkit/components/search/SearchUtils.sys.mjs
@@ -193,9 +193,9 @@ export var SearchUtils = { @@ -206,9 +206,9 @@ export var SearchUtils = {
ENGINES_URLS: { ENGINES_URLS: {
"prod-main": "prod-main":