De-branded for MSVSphere 8.8

i8 changed/i8/firefox-102.9.0-3.el8_7.inferit
Sergey Cherevko 1 year ago
parent c7eeda1dc7
commit dd291b6309
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

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

@ -14,8 +14,8 @@ pref("browser.shell.checkDefaultBrowser", false);
pref("network.manage-offline-status", true);
pref("extensions.shownSelectionUI", true);
pref("ui.SpellCheckerUnderlineStyle", 1);
pref("startup.homepage_override_url", "http://www.redhat.com");
pref("startup.homepage_welcome_url", "http://www.redhat.com");
pref("startup.homepage_override_url", "http://msvsphere.ru");
pref("startup.homepage_welcome_url", "http://msvsphere.ru");
pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=file:///%PREFIX%/share/doc/HTML/index.html");
pref("media.gmp-gmpopenh264.provider.enabled",false);
pref("media.gmp-gmpopenh264.autoupdate",false);
@ -36,4 +36,4 @@ pref("browser.gnome-search-provider.enabled",true);
/* Enable ffvpx playback for WebRTC */
pref("media.navigator.mediadatadecoder_vpx_enabled", true);
/* See https://bugzilla.redhat.com/show_bug.cgi?id=1672424 */
pref("storage.nfs_filesystem", true);
pref("storage.nfs_filesystem", true);

@ -4,7 +4,9 @@
<id>firefox.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Firefox</name>
<name xml:lang="ru">Веб-браузер Firefox</name>
<summary>Web Browser</summary>
<summary xml:lang="ru">Веб-браузер</summary>
<summary xml:lang="ca">Navegador web</summary>
<summary xml:lang="cs">Webový prohlížeč</summary>
<summary xml:lang="es">Navegador web</summary>
@ -32,6 +34,13 @@
function will include possible matches from your browsing history, bookmarked
sites and open tabs.
</p>
<p xml:lang="ru">
Объединяя все виды потрясающих возможностей, мы делаем просмотр более удобным для вас.
Быстро переходите на свои любимые сайты даже если вы не помните URL-адреса.
Введите термин в адресную строку (также известную как Awesome Bar), и функция
автозаполнения будет включать возможные совпадения из вашей истории просмотров,
сайтов из закладок и открытых вкладок.
</p>
</description>
<url type="homepage">https://www.mozilla.org</url>
<update_contact>stransky@redhat.com</update_contact>

@ -1,6 +1,7 @@
[Desktop Entry]
Version=1.0
Name=Firefox
Name[ru]=Веб-браузер Firefox
GenericName=Web Browser
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
@ -20,6 +21,7 @@ GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[sk]=Internetový prehliadač
GenericName[ru]=Веб браузер
GenericName[sv]=Webbläsare
Comment=Browse the Web
Comment[ca]=Navegueu per el web
@ -41,6 +43,7 @@ Comment[pl]=Przeglądanie stron WWW
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[sk]=Prehliadanie internetu
Comment[ru]=Просматривайте веб-страницы
Comment[sv]=Surfa på webben
Exec=firefox %u
Icon=firefox
@ -272,4 +275,5 @@ Exec=firefox --private-window %u
Name=Open the Profile Manager
Name[cs]=Správa profilů
Name[de]=Profilverwaltung öffnen
Name[ru]=Откройте диспетчер профилей
Exec=firefox --ProfileManager

@ -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+AZQMhkWQheI3poZAToYJu69pHLKS6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gMmvn/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)

@ -201,7 +201,7 @@ end}
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 102.9.0
Release: 3%{?dist}
Release: 3%{?dist}.inferit
URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
@ -263,6 +263,13 @@ Source403: nss-3.79.0-6.el8_1.src.rpm
Source401: nss-setup-flags-env.inc
Source402: nspr-4.34.0-3.el8_1.src.rpm
# MSVSphere added Russian Trusted Root CA
Source500: rootca_ssl_rsa2022.cer
Source501: policies.json
# apply script from ROSA to set Yandex provides
# as default search provider for Firefox
# https://abf.rosalinux.ru/import/firefox/raw/rosa2023.1/use_yandex_search_as_default.py
Source502: use_yandex_search_as_default.py
# Build patches
Patch3: mozilla-build-arm.patch
Patch25: rhbz-1219542-s390-build.patch
@ -318,6 +325,8 @@ Patch600: pgo.patch
Patch602: mozilla-1516803.patch
Patch1008: build-rhel7-nasm-dwarf.patch
# MSVSphere
Patch10000: 0001-Overt-telemetry-disabling.patch
%if %{?system_nss}
%if !0%{?bundle_nss}
@ -703,7 +712,10 @@ echo "use_rustts %{?use_rustts}"
%endif
%endif
# set Yandex search provider by default
python3 %{SOURCE502} services/settings/dumps/main/search-config.json
%patch10000 -p1 -b .0001-Overt-telemetry-disabling
%{__rm} -f .mozconfig
%{__cp} %{SOURCE10} .mozconfig
@ -1281,6 +1293,11 @@ sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{mozappdir}/defaults/preferences
# System config dir
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/%{name}/pref
# MSVSphere added Russian Trusted Root CA
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/%{name}/policies
%{__cp} %{SOURCE500} %{buildroot}%{mozappdir}/defaults
%{__cp} %{SOURCE501} %{buildroot}/%{_sysconfdir}/%{name}/policies
# System extensions
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_app_id}
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_app_id}
@ -1379,6 +1396,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc %{_mandir}/man1/*
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/*
%{_sysconfdir}/%{name}/policies
%dir %{_datadir}/mozilla/extensions/*
%dir %{_libdir}/mozilla/extensions/*
%{_datadir}/applications/%{name}.desktop
@ -1387,6 +1405,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%dir %{mozappdir}
%license %{mozappdir}/LICENSE
%{mozappdir}/browser/chrome
%{mozappdir}/defaults/*.cer
%{mozappdir}/defaults/preferences/*
%{mozappdir}/browser/defaults/preferences
%{mozappdir}/browser/features/*.xpi
@ -1451,6 +1470,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------
%changelog
* Tue Aug 15 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 102.9.0-3.inferit
- Added Russian Trusted Root CA
- Set Yandex as default search provider (Arkady L. Shane <ashejn@msvsphere.ru>)
- Added Russian description and summary for ArcMenu and gnome-software
- Disable telemetry and geolocation by default
- Rebuilt for MSVSphere 8.8
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 102.9.0-3
- Rebuilt for MSVSphere 8.8

Loading…
Cancel
Save