Disable telemetry and geolocation by default

i9 changed/i9/firefox-102.9.0-3.el9_1.inferit.2
Sergey Cherevko 1 year ago
parent 4e7125eed3
commit 4f407f750e
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

@ -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

@ -201,7 +201,7 @@ end}
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 102.9.0 Version: 102.9.0
Release: 3%{?dist}.inferit.1 Release: 3%{?dist}.inferit.2
URL: https://www.mozilla.org/firefox/ URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
@ -325,6 +325,8 @@ Patch600: pgo.patch
Patch602: mozilla-1516803.patch Patch602: mozilla-1516803.patch
Patch1008: build-rhel7-nasm-dwarf.patch Patch1008: build-rhel7-nasm-dwarf.patch
# MSVSphere
Patch10000: 0001-Overt-telemetry-disabling.patch
%if %{?system_nss} %if %{?system_nss}
%if !0%{?bundle_nss} %if !0%{?bundle_nss}
@ -714,6 +716,7 @@ echo "use_rustts %{?use_rustts}"
python3 %{SOURCE502} services/settings/dumps/main/search-config.json python3 %{SOURCE502} services/settings/dumps/main/search-config.json
%patch10000 -p1 -b .0001-Overt-telemetry-disabling
%{__rm} -f .mozconfig %{__rm} -f .mozconfig
%{__cp} %{SOURCE10} .mozconfig %{__cp} %{SOURCE10} .mozconfig
@ -1468,6 +1471,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Thu Jul 27 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 102.9.0-3.inferit.2
- Disable telemetry and geolocation by default
- Rebuilt for MSVSphere 9.2
* Tue Jun 27 2023 Arkady L. Shane <ashejn@msvsphere.ru> - 102.9.0-3.inferit.1 * Tue Jun 27 2023 Arkady L. Shane <ashejn@msvsphere.ru> - 102.9.0-3.inferit.1
- set Yandex as default search provider - set Yandex as default search provider

Loading…
Cancel
Save