Compare commits
No commits in common. 'c9' and 'i9' have entirely different histories.
@ -0,0 +1,77 @@
|
|||||||
|
From cdd5830a51a592098af841da33e3ff74d3d80b47 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tigro <tigro@msvsphere-os.ru>
|
||||||
|
Date: Thu, 19 Sep 2024 10:34:02 +0300
|
||||||
|
Subject: [PATCH] Overt telemetry disabling
|
||||||
|
|
||||||
|
---
|
||||||
|
modules/libpref/init/all.js | 27 ++++++++++++++++++++++-----
|
||||||
|
1 file changed, 22 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
|
||||||
|
index 2cbb736212..721e81128d 100644
|
||||||
|
--- a/modules/libpref/init/all.js
|
||||||
|
+++ b/modules/libpref/init/all.js
|
||||||
|
@@ -576,15 +576,30 @@ pref("toolkit.sqlitejsm.loglevel", "Error");
|
||||||
|
pref("toolkit.tabbox.switchByScrolling", false);
|
||||||
|
|
||||||
|
// Telemetry settings.
|
||||||
|
+// MSVSphere disable telemetry and geolocation by default
|
||||||
|
+pref("toolkit.telemetry.updatePing.enabled", false);
|
||||||
|
+pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
||||||
|
+pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||||
|
+pref("browser.ping-centre.telemetry", false);
|
||||||
|
+pref("toolkit.telemetry.bhrPing.enabled", false);
|
||||||
|
+pref("toolkit.telemetry.enabled", false);
|
||||||
|
+pref("toolkit.telemetry.firstShutdownPing.enabled", false);
|
||||||
|
+pref("toolkit.telemetry.hybridContent.enabled", false);
|
||||||
|
+pref("toolkit.telemetry.newProfilePing.enabled", false);
|
||||||
|
+pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||||
|
+pref("toolkit.telemetry.shutdownPingSender.enabled", false);
|
||||||
|
+pref("toolkit.telemetry.archive.enabled", false);
|
||||||
|
+pref("devtools.onboarding.telemetry.logged", false);
|
||||||
|
+
|
||||||
|
// Server to submit telemetry pings to.
|
||||||
|
-pref("toolkit.telemetry.server", "https://incoming.telemetry.mozilla.org");
|
||||||
|
+pref("toolkit.telemetry.server", "");
|
||||||
|
// Telemetry server owner. Please change if you set toolkit.telemetry.server to a different server
|
||||||
|
-pref("toolkit.telemetry.server_owner", "Mozilla");
|
||||||
|
+pref("toolkit.telemetry.server_owner", "MSVSphere");
|
||||||
|
// Determines whether full SQL strings are returned when they might contain sensitive info
|
||||||
|
// i.e. dynamically constructed SQL strings or SQL executed by addons against addon DBs
|
||||||
|
pref("toolkit.telemetry.debugSlowSql", false);
|
||||||
|
// Whether to use the unified telemetry behavior, requires a restart.
|
||||||
|
-pref("toolkit.telemetry.unified", true);
|
||||||
|
+pref("toolkit.telemetry.unified", false);
|
||||||
|
|
||||||
|
// DAP related preferences
|
||||||
|
pref("toolkit.telemetry.dap_enabled", false);
|
||||||
|
@@ -3226,6 +3241,8 @@ pref("network.psl.onUpdate_notify", false);
|
||||||
|
|
||||||
|
// All the Geolocation preferences are here.
|
||||||
|
//
|
||||||
|
+// MSVSphere Geo location sends location data
|
||||||
|
+pref("geo.enabled", false);
|
||||||
|
pref("geo.provider.network.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%");
|
||||||
|
|
||||||
|
// Timeout to wait before sending the location request.
|
||||||
|
@@ -3857,7 +3874,7 @@ pref("toolkit.aboutProcesses.profileDuration", 5);
|
||||||
|
pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
|
||||||
|
|
||||||
|
#ifdef MOZ_DATA_REPORTING
|
||||||
|
- pref("datareporting.policy.dataSubmissionEnabled", true);
|
||||||
|
+ pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||||
|
pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "0");
|
||||||
|
pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 0);
|
||||||
|
pref("datareporting.policy.dataSubmissionPolicyBypassNotification", false);
|
||||||
|
@@ -3872,7 +3889,7 @@ pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
|
||||||
|
pref("datareporting.healthreport.infoURL", "https://www.mozilla.org/legal/privacy/firefox.html#health-report");
|
||||||
|
|
||||||
|
// Health Report is enabled by default on all channels.
|
||||||
|
- pref("datareporting.healthreport.uploadEnabled", true);
|
||||||
|
+ pref("datareporting.healthreport.uploadEnabled", false);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
--
|
||||||
|
2.46.0
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
From 70366cd339ac14a32e5b0cdab05a25166ec169a3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tigro <tigro@msvsphere-os.ru>
|
||||||
|
Date: Fri, 1 Nov 2024 14:58:02 +0300
|
||||||
|
Subject: [PATCH] Return Yandex engine support
|
||||||
|
|
||||||
|
---
|
||||||
|
services/settings/dumps/main/moz.build | 2 ++
|
||||||
|
.../components/backgroundtasks/BackgroundTask_message.sys.mjs | 2 +-
|
||||||
|
toolkit/modules/AppConstants.sys.mjs | 2 +-
|
||||||
|
3 files changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/services/settings/dumps/main/moz.build b/services/settings/dumps/main/moz.build
|
||||||
|
index 5b1e881..6a89f0d 100644
|
||||||
|
--- a/services/settings/dumps/main/moz.build
|
||||||
|
+++ b/services/settings/dumps/main/moz.build
|
||||||
|
@@ -62,6 +62,8 @@ if CONFIG["MOZ_BUILD_APP"] == "browser":
|
||||||
|
"search-config-icons/2e835b0e-9709-d1bb-9725-87f59f3445ca.meta.json",
|
||||||
|
"search-config-icons/32d26d19-aeb0-5c01-32e8-f8970be9246f",
|
||||||
|
"search-config-icons/32d26d19-aeb0-5c01-32e8-f8970be9246f.meta.json",
|
||||||
|
+ "search-config-icons/32dc5c21-98c7-4355-8603-398c9f5eec49",
|
||||||
|
+ "search-config-icons/32dc5c21-98c7-4355-8603-398c9f5eec49.meta.json",
|
||||||
|
"search-config-icons/39979158-80cf-4f0c-8bd6-9220eb09e751",
|
||||||
|
"search-config-icons/39979158-80cf-4f0c-8bd6-9220eb09e751.meta.json",
|
||||||
|
"search-config-icons/47da97b5-600f-c450-fd15-a52bb2169c11",
|
||||||
|
diff --git a/toolkit/components/backgroundtasks/BackgroundTask_message.sys.mjs b/toolkit/components/backgroundtasks/BackgroundTask_message.sys.mjs
|
||||||
|
index aafe4a6..6ef1c45 100644
|
||||||
|
--- a/toolkit/components/backgroundtasks/BackgroundTask_message.sys.mjs
|
||||||
|
+++ b/toolkit/components/backgroundtasks/BackgroundTask_message.sys.mjs
|
||||||
|
@@ -71,7 +71,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||||
|
Utils: "resource://services-settings/Utils.sys.mjs",
|
||||||
|
});
|
||||||
|
|
||||||
|
-const SERVER_STAGE = "https://firefox.settings.services.allizom.org/v1";
|
||||||
|
+const SERVER_STAGE = "https://127.0.0.1";
|
||||||
|
|
||||||
|
// Default profile targeting snapshot.
|
||||||
|
let defaultProfileTargetingSnapshot = {};
|
||||||
|
diff --git a/toolkit/modules/AppConstants.sys.mjs b/toolkit/modules/AppConstants.sys.mjs
|
||||||
|
index 4678835..4913eca 100644
|
||||||
|
--- a/toolkit/modules/AppConstants.sys.mjs
|
||||||
|
+++ b/toolkit/modules/AppConstants.sys.mjs
|
||||||
|
@@ -421,7 +421,7 @@ export var AppConstants = Object.freeze({
|
||||||
|
#ifdef MOZ_THUNDERBIRD
|
||||||
|
"https://thunderbird-settings.thunderbird.net/v1",
|
||||||
|
#else
|
||||||
|
- "https://firefox.settings.services.mozilla.com/v1",
|
||||||
|
+ "https://127.0.0.1",
|
||||||
|
#endif
|
||||||
|
|
||||||
|
REMOTE_SETTINGS_VERIFY_SIGNATURE:
|
||||||
|
--
|
||||||
|
2.47.0
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"policies": {
|
||||||
|
"Certificates": {
|
||||||
|
"ImportEnterpriseRoots": true,
|
||||||
|
"Install": ["rootca_ssl_rsa2022.cer",
|
||||||
|
"/usr/lib64/firefox/defaults/rootca_ssl_rsa2022.cer"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFwjCCA6qgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwcDELMAkGA1UEBhMCUlUx
|
||||||
|
PzA9BgNVBAoMNlRoZSBNaW5pc3RyeSBvZiBEaWdpdGFsIERldmVsb3BtZW50IGFu
|
||||||
|
ZCBDb21tdW5pY2F0aW9uczEgMB4GA1UEAwwXUnVzc2lhbiBUcnVzdGVkIFJvb3Qg
|
||||||
|
Q0EwHhcNMjIwMzAxMjEwNDE1WhcNMzIwMjI3MjEwNDE1WjBwMQswCQYDVQQGEwJS
|
||||||
|
VTE/MD0GA1UECgw2VGhlIE1pbmlzdHJ5IG9mIERpZ2l0YWwgRGV2ZWxvcG1lbnQg
|
||||||
|
YW5kIENvbW11bmljYXRpb25zMSAwHgYDVQQDDBdSdXNzaWFuIFRydXN0ZWQgUm9v
|
||||||
|
dCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMfFOZ8pUAL3+r2n
|
||||||
|
qqE0Zp52selXsKGFYoG0GM5bwz1bSFtCt+AZQMhkWQheI3poZAToYJu69pHLKS6Q
|
||||||
|
XBiwBC1cvzYmUYKMYZC7jE5YhEU2bSL0mX7NaMxMDmH2/NwuOVRj8OImVa5s1F4U
|
||||||
|
zn4Kv3PFlDBjjSjXKVY9kmjUBsXQrIHeaqmUIsPIlNWUnimXS0I0abExqkbdrXbX
|
||||||
|
YwCOXhOO2pDUx3ckmJlCMUGacUTnylyQW2VsJIyIGA8V0xzdaeUXg0VZ6ZmNUr5Y
|
||||||
|
Ber/EAOLPb8NYpsAhJe2mXjMB/J9HNsoFMBFJ0lLOT/+dQvjbdRZoOT8eqJpWnVD
|
||||||
|
U+QL/q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ztxRTEVj8ONs1d
|
||||||
|
WN5szTwaPIvhkhO3CO5ErU2rVdUr89wKpNXbBODFKRtgxUT70YpmJ46VVaqdAhOZ
|
||||||
|
D9EUUn4YaeLaS8AjSF/h7UkjOibNc4qVDiPP+rkehFWM66PVnP1Msh93tc+taIfC
|
||||||
|
EYVMxjh8zNbFuoc7fzvvrFILLe7ifvEIUqSVIC/AzplM/Jxw7buXFeGP1qVCBEHq
|
||||||
|
391d/9RAfaZ12zkwFsl+IKwE/OZxW8AHa9i1p4GO0YSNuczzEm4=
|
||||||
|
-----END CERTIFICATE-----
|
@ -0,0 +1,171 @@
|
|||||||
|
import datetime
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import sys
|
||||||
|
|
||||||
|
YANDEX_SEARCH_ENGINE_SECTION = json.loads('''
|
||||||
|
{
|
||||||
|
"base": {
|
||||||
|
"aliases": [
|
||||||
|
"yandex"
|
||||||
|
],
|
||||||
|
"classification": "general",
|
||||||
|
"name": "Yandex",
|
||||||
|
"partnerCode": "",
|
||||||
|
"urls": {
|
||||||
|
"search": {
|
||||||
|
"base": "https://yandex.ru/search/",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "clid",
|
||||||
|
"value": "{partnerCode}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"searchTermParamName": "text"
|
||||||
|
},
|
||||||
|
"suggestions": {
|
||||||
|
"base": "https://suggest.yandex.ru/suggest-ff.cgi",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "clid",
|
||||||
|
"value": "{partnerCode}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"searchTermParamName": "part"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "",
|
||||||
|
"identifier": "yandex",
|
||||||
|
"last_modified": 0,
|
||||||
|
"recordType": "engine",
|
||||||
|
"schema": 0,
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"environment": {
|
||||||
|
"allRegionsAndLocales": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
''')
|
||||||
|
|
||||||
|
YANDEX_ICON_SECTION = json.loads('''
|
||||||
|
{
|
||||||
|
"schema": 0,
|
||||||
|
"imageSize": 32,
|
||||||
|
"attachment": {
|
||||||
|
"hash": "6bb91f1d74389b18bce6e71772e4c5573648c1a4823338193f700afdf8216be5",
|
||||||
|
"size": 5750,
|
||||||
|
"filename": "yandex-32-firefox.png",
|
||||||
|
"location": "main-workspace/search-config-icons/1f0aef96-9d62-4519-906d-379b710a80e8.ico",
|
||||||
|
"mimetype": "image/x-icon"
|
||||||
|
},
|
||||||
|
"engineIdentifiers": [
|
||||||
|
"yandex"
|
||||||
|
],
|
||||||
|
"filter_expression": "env.appinfo.ID == \\"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}\\"",
|
||||||
|
"id": "",
|
||||||
|
"last_modified": 0
|
||||||
|
}
|
||||||
|
''')
|
||||||
|
|
||||||
|
YANDEX_SEARCH_ENGINE_ID = "403a24ac-3e95-4581-88e4-a479eb4ce558"
|
||||||
|
YANDEX_ICON_ID = "32dc5c21-98c7-4355-8603-398c9f5eec49"
|
||||||
|
|
||||||
|
# ROSA Linux
|
||||||
|
PARTNER_CLID = "2800424"
|
||||||
|
|
||||||
|
SEARCH_CONFIG_RELATIVE_PATH = "services/settings/dumps/main/search-config-v2.json"
|
||||||
|
SEARCH_CONFIG_ICONS_RELATIVE_PATH = "services/settings/dumps/main/search-config-icons.json"
|
||||||
|
YANDEX_ICON_META_RELATIVE_DIR = "services/settings/dumps/main/search-config-icons/"
|
||||||
|
|
||||||
|
search_config_path = SEARCH_CONFIG_RELATIVE_PATH
|
||||||
|
if not os.path.isfile(search_config_path):
|
||||||
|
print(search_config_path, "not found")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
search_config_icons_path = SEARCH_CONFIG_ICONS_RELATIVE_PATH
|
||||||
|
if not os.path.isfile(search_config_icons_path):
|
||||||
|
print(search_config_icons_path, "not found")
|
||||||
|
exit(2)
|
||||||
|
|
||||||
|
yandex_icon_meta_path = os.path.join(YANDEX_ICON_META_RELATIVE_DIR, YANDEX_ICON_ID + ".meta.json")
|
||||||
|
|
||||||
|
YANDEX_SEARCH_ENGINE_SECTION["id"] = YANDEX_SEARCH_ENGINE_ID
|
||||||
|
YANDEX_SEARCH_ENGINE_SECTION["base"]["partnerCode"] = PARTNER_CLID
|
||||||
|
|
||||||
|
timestamp = int( datetime.datetime.now().timestamp() ) * 1000
|
||||||
|
YANDEX_SEARCH_ENGINE_SECTION["last_modified"] = timestamp
|
||||||
|
YANDEX_SEARCH_ENGINE_SECTION["schema"] = timestamp
|
||||||
|
|
||||||
|
YANDEX_ICON_SECTION["id"] = YANDEX_ICON_ID
|
||||||
|
YANDEX_ICON_SECTION["last_modified"] = timestamp
|
||||||
|
YANDEX_ICON_SECTION["schema"] = timestamp
|
||||||
|
|
||||||
|
search_config = None
|
||||||
|
with open(search_config_path) as f:
|
||||||
|
search_config = json.load(f)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
yandex_search_engine_inserted = False
|
||||||
|
for i, engine in enumerate(search_config["data"]):
|
||||||
|
if "globalDefault" in engine:
|
||||||
|
engine["globalDefault"] = "yandex"
|
||||||
|
engine["last_modified"] = timestamp
|
||||||
|
engine["schema"] = timestamp
|
||||||
|
elif "orders" in engine:
|
||||||
|
for order in engine["orders"]:
|
||||||
|
if "order" in order:
|
||||||
|
yandex_inserted = False
|
||||||
|
for s in order["order"]:
|
||||||
|
if s == "yandex":
|
||||||
|
yandex_inserted = True
|
||||||
|
if not yandex_inserted:
|
||||||
|
order["order"] = ["yandex"] + order["order"]
|
||||||
|
engine["last_modified"] = timestamp
|
||||||
|
engine["schema"] = timestamp
|
||||||
|
elif "id" in engine and engine["id"] == YANDEX_SEARCH_ENGINE_ID:
|
||||||
|
yandex_search_engine_inserted = True
|
||||||
|
search_config["data"][i] = YANDEX_SEARCH_ENGINE_SECTION
|
||||||
|
|
||||||
|
search_config["timestamp"] = timestamp
|
||||||
|
if not yandex_search_engine_inserted:
|
||||||
|
search_config["data"] = [YANDEX_SEARCH_ENGINE_SECTION] + search_config["data"]
|
||||||
|
|
||||||
|
with open(search_config_path, 'w', encoding='utf8') as f:
|
||||||
|
json.dump(search_config, f, ensure_ascii=False, indent=2)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
search_config_icons = None
|
||||||
|
with open(search_config_icons_path) as f:
|
||||||
|
search_config_icons = json.load(f)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
yandex_icon_inserted = False
|
||||||
|
for i, icon in enumerate(search_config_icons["data"]):
|
||||||
|
if "id" in icon and icon["id"] == YANDEX_ICON_ID:
|
||||||
|
yandex_icon_inserted = True
|
||||||
|
search_config_icons["data"][i] = YANDEX_ICON_SECTION
|
||||||
|
|
||||||
|
search_config_icons["timestamp"] = timestamp
|
||||||
|
if not yandex_icon_inserted:
|
||||||
|
search_config_icons["data"] = [YANDEX_ICON_SECTION] + search_config_icons["data"]
|
||||||
|
|
||||||
|
with open(search_config_icons_path, 'w', encoding='utf8') as f:
|
||||||
|
json.dump(search_config_icons, f, ensure_ascii=False, indent=2)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
with open(yandex_icon_meta_path, 'w', encoding='utf8') as f:
|
||||||
|
json.dump(YANDEX_ICON_SECTION, f, ensure_ascii=False)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
YANDEX_ICON_RELATIVE_DIR = "services/settings/dumps/main/search-config-icons/"
|
||||||
|
|
||||||
|
src_icon_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), YANDEX_ICON_ID)
|
||||||
|
dst_icon_path = os.path.join(YANDEX_ICON_RELATIVE_DIR, YANDEX_ICON_ID)
|
||||||
|
|
||||||
|
shutil.copy(src_icon_path, dst_icon_path)
|
||||||
|
|
||||||
|
exit(0)
|
Loading…
Reference in new issue