parent
c7eeda1dc7
commit
dd291b6309
@ -0,0 +1,76 @@
|
||||
From cc57a41d19002c9a7e56a3e201dc2d0b159940c3 Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Cherevko <s.cherevko@msvsphere.ru>
|
||||
Date: Fri, 28 Jul 2023 17:31:52 +0300
|
||||
Subject: [PATCH] Overt telemetry disabling
|
||||
|
||||
---
|
||||
modules/libpref/init/all.js | 26 +++++++++++++++++++++-----
|
||||
1 file changed, 21 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
|
||||
index 6e0effe78b..aee199df4c 100644
|
||||
--- a/modules/libpref/init/all.js
|
||||
+++ b/modules/libpref/init/all.js
|
||||
@@ -684,15 +684,29 @@ 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);
|
||||
// AsyncShutdown delay before crashing in case of shutdown freeze
|
||||
#if !defined(MOZ_ASAN) && !defined(MOZ_TSAN)
|
||||
pref("toolkit.asyncshutdown.crash_timeout", 60000); // 1 minute
|
||||
@@ -3557,6 +3571,8 @@ pref("network.psl.onUpdate_notify", false);
|
||||
|
||||
// All the Geolocation preferences are here.
|
||||
//
|
||||
+// MSVSphere Geo location sends location data
|
||||
+pref("geo.enabled", false);
|
||||
#ifndef EARLY_BETA_OR_EARLIER
|
||||
pref("geo.provider.network.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%");
|
||||
#else
|
||||
@@ -4155,7 +4171,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);
|
||||
@@ -4170,7 +4186,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.39.2
|
||||
|
@ -1,9 +1,9 @@
|
||||
[Global]
|
||||
id=fedora
|
||||
id=MSVSphere
|
||||
version=1.0
|
||||
about=Mozilla Firefox for Fedora
|
||||
about=Mozilla Firefox for MSVSphere
|
||||
|
||||
[Preferences]
|
||||
app.distributor=fedora
|
||||
app.distributor.channel=fedora
|
||||
app.partner.fedora=fedora
|
||||
app.distributor=msvsphere
|
||||
app.distributor.channel=msvsphere
|
||||
app.partner.fedora=msvsphere
|
||||
|
@ -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
|
||||
qqE0Zp52sel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lms8F3CHmrw3k6KmUkWGoa+/ENmcVl68u/cMRl1JbW2bM+
|
||||
/3A+SAg2c6iPDlehczKx2oa95QW0SkPPWGuNA/CE8CpyANIhu9XFrj3RQ3EqeRcS
|
||||
AQQod1RNuHpfETLU/A2gMmvn/w/sx7TB3W5BPs6rprOA37tutPq9u6FTZOcG1Oqj
|
||||
C/B7yTqgI7rbyvox7DEXoX7rIiEqyNNUguTk/u3SZ4VXE2kmxdmSh3TQvybfbnXV
|
||||
4JbCZVaqiZraqc7oZMnRoWrXRG3ztbnbes/9qhRGI7PqXqeKJBztxRTEVj8ONs1d
|
||||
WN5szTwaPIvhkhO3CO5ErU2rVdUr89wKpNXbBODFKRtgxUT70YpmJ46VVaqdAhOZ
|
||||
D9EUUn4YaeLaS8AjSF/h7UkjOibNc4qVDiPP+rkehFWM66PVnP1Msh93tc+taIfC
|
||||
EYVMxjh8zNbFuoc7fzvvrFILLe7ifvEIUqSVIC/AzplM/Jxw7buXFeGP1qVCBEHq
|
||||
391d/9RAfaZ12zkwFsl+IKwE/OZxW8AHa9i1p4GO0YSNuczzEm4=
|
||||
-----END CERTIFICATE-----
|
@ -0,0 +1,44 @@
|
||||
import json
|
||||
import sys
|
||||
import datetime
|
||||
|
||||
YANDEX_SECTION = json.loads('''
|
||||
{
|
||||
"appliesTo": [
|
||||
{
|
||||
"default": "yes",
|
||||
"included": {
|
||||
"everywhere": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "a0e7f96a-14e0-4d56-9f54-e0c7e49fd306",
|
||||
"last_modified": 1679065511545,
|
||||
"schema": 1639069022290,
|
||||
"webExtension": {
|
||||
"id": "yandex@search.mozilla.org"
|
||||
}
|
||||
}
|
||||
''')
|
||||
|
||||
search_config = None
|
||||
with open(sys.argv[1]) as f:
|
||||
search_config = json.load(f)
|
||||
|
||||
inserted = False
|
||||
for engine in search_config["data"]:
|
||||
if engine["webExtension"]["id"] == "yandex@search.mozilla.org":
|
||||
inserted = True
|
||||
engine = YANDEX_SECTION
|
||||
else:
|
||||
for applies in engine["appliesTo"]:
|
||||
if "default" in applies and applies["default"] == "yes":
|
||||
applies["default"] = "no"
|
||||
|
||||
if not inserted:
|
||||
search_config["data"] = [YANDEX_SECTION] + search_config["data"]
|
||||
|
||||
search_config["timestamp"] = int( datetime.datetime.now().timestamp() ) * 1000
|
||||
|
||||
with open(sys.argv[1], 'w') as f:
|
||||
json.dump(search_config, f, indent=2)
|
Loading…
Reference in new issue