parent
129b5bdd98
commit
89b231f068
@ -0,0 +1,116 @@
|
||||
From 1277732f202321f959509691d7fef315aaaba6aa Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Cherevko <s.cherevko@msvsphere-os.ru>
|
||||
Date: Thu, 14 Dec 2023 18:09:14 +0300
|
||||
Subject: [PATCH] Overt telemetry disabling
|
||||
|
||||
---
|
||||
modules/libpref/init/all.js | 38 ++++++++++++++++++++++++++-----------
|
||||
1 file changed, 27 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
|
||||
index c7c6f0ca82..69ca3653d4 100644
|
||||
--- a/modules/libpref/init/all.js
|
||||
+++ b/modules/libpref/init/all.js
|
||||
@@ -256,7 +256,7 @@ pref("media.decoder-doctor.decode-warnings-allowed", "");
|
||||
// Whether we report partial failures.
|
||||
pref("media.decoder-doctor.verbose", false);
|
||||
// URL to report decode issues
|
||||
-pref("media.decoder-doctor.new-issue-endpoint", "https://webcompat.com/issues/new");
|
||||
+pref("media.decoder-doctor.new-issue-endpoint", "");
|
||||
|
||||
pref("media.videocontrols.picture-in-picture.enabled", false);
|
||||
pref("media.videocontrols.picture-in-picture.display-text-tracks.enabled", true);
|
||||
@@ -639,26 +639,40 @@ 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);
|
||||
// Verification tasks
|
||||
pref("toolkit.telemetry.dap_task1_enabled", false);
|
||||
// Leader endpoint for the DAP protocol
|
||||
-pref("toolkit.telemetry.dap_leader", "https://dap-02.api.divviup.org");
|
||||
+pref("toolkit.telemetry.dap_leader", "");
|
||||
// Not used for anything. Just additional information.
|
||||
pref("toolkit.telemetry.dap_leader_owner", "ISRG");
|
||||
// Second DAP server. Only two are currently supported.
|
||||
-pref("toolkit.telemetry.dap_helper", "https://helper1.dap.cloudflareresearch.com/v02");
|
||||
+pref("toolkit.telemetry.dap_helper", "");
|
||||
pref("toolkit.telemetry.dap_helper_owner", "Cloudflare");
|
||||
pref("toolkit.telemetry.dap.logLevel", "Warn");
|
||||
|
||||
@@ -702,7 +716,7 @@ pref("toolkit.dump.emit", false);
|
||||
// This pref configures the base URL for the profiler.firefox.com instance to
|
||||
// use. This is useful so that a developer can change it while working on
|
||||
// profiler.firefox.com, or in tests. This isn't exposed directly to the user.
|
||||
-pref("devtools.performance.recording.ui-base-url", "https://profiler.firefox.com");
|
||||
+pref("devtools.performance.recording.ui-base-url", "");
|
||||
// When gathering profiles from child processes, this is the longest time (in
|
||||
// seconds) allowed between two responses. 0 = Use internal default.
|
||||
pref("devtools.performance.recording.child.timeout_s", 0);
|
||||
@@ -3249,6 +3263,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
|
||||
@@ -3871,22 +3887,22 @@ 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);
|
||||
pref("datareporting.policy.currentPolicyVersion", 2);
|
||||
pref("datareporting.policy.minimumPolicyVersion", 1);
|
||||
pref("datareporting.policy.minimumPolicyVersion.channel-beta", 2);
|
||||
- pref("datareporting.policy.firstRunURL", "https://www.mozilla.org/privacy/firefox/");
|
||||
+ pref("datareporting.policy.firstRunURL", "");
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_SERVICES_HEALTHREPORT
|
||||
#if !defined(ANDROID)
|
||||
- pref("datareporting.healthreport.infoURL", "https://www.mozilla.org/legal/privacy/firefox.html#health-report");
|
||||
+ pref("datareporting.healthreport.infoURL", "");
|
||||
|
||||
// Health Report is enabled by default on all channels.
|
||||
- pref("datareporting.healthreport.uploadEnabled", true);
|
||||
+ pref("datareporting.healthreport.uploadEnabled", false);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
--
|
||||
2.39.3
|
||||
|
@ -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
|
||||
dCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMfF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4OI8cq
|
||||
W9E4EG9wglbEtMnObHlms8F3CHmrw3k6KmUkWGoa+/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