1 |
commit: 23e30a18cc929a37f50e38b5d5671d58cbc3506a |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 27 22:38:51 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 30 11:45:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23e30a18 |
7 |
|
8 |
www-client/firefox: disable Normandy service by default |
9 |
|
10 |
Bug: https://bugs.gentoo.org/713782 |
11 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
www-client/firefox/files/gentoo-default-prefs.js-3 | 1 + |
15 |
...x-68.6.0-r1.ebuild => firefox-68.6.0-r2.ebuild} | 33 ++++++++++++++++++++++ |
16 |
www-client/firefox/firefox-74.0-r2.ebuild | 26 +++++++++++++++-- |
17 |
3 files changed, 58 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/www-client/firefox/files/gentoo-default-prefs.js-3 b/www-client/firefox/files/gentoo-default-prefs.js-3 |
20 |
index d2a4dc82c94..073ea77e511 100644 |
21 |
--- a/www-client/firefox/files/gentoo-default-prefs.js-3 |
22 |
+++ b/www-client/firefox/files/gentoo-default-prefs.js-3 |
23 |
@@ -16,3 +16,4 @@ pref("intl.locale.requested", ""); |
24 |
pref("extensions.autoDisableScopes", 0); |
25 |
pref("layout.css.dpi", 0); |
26 |
pref("network.trr.mode", 5); |
27 |
+pref("app.normandy.enabled", false); |
28 |
|
29 |
diff --git a/www-client/firefox/firefox-68.6.0-r1.ebuild b/www-client/firefox/firefox-68.6.0-r2.ebuild |
30 |
similarity index 96% |
31 |
rename from www-client/firefox/firefox-68.6.0-r1.ebuild |
32 |
rename to www-client/firefox/firefox-68.6.0-r2.ebuild |
33 |
index c59249a4953..d610d428cc5 100644 |
34 |
--- a/www-client/firefox/firefox-68.6.0-r1.ebuild |
35 |
+++ b/www-client/firefox/firefox-68.6.0-r2.ebuild |
36 |
@@ -775,6 +775,39 @@ pkg_postinst() { |
37 |
elog "media-sound/apulse." |
38 |
elog |
39 |
fi |
40 |
+ |
41 |
+ local show_normandy_information |
42 |
+ |
43 |
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then |
44 |
+ # New install |
45 |
+ show_normandy_information=yes |
46 |
+ else |
47 |
+ local replacing_version |
48 |
+ for replacing_version in ${REPLACING_VERSIONS} ; do |
49 |
+ if ver_test "${replacing_version}" -lt 68.6.0-r2 ; then |
50 |
+ # Tell user only once about our Normandy default |
51 |
+ show_normandy_information=yes |
52 |
+ break |
53 |
+ fi |
54 |
+ done |
55 |
+ fi |
56 |
+ |
57 |
+ # bug 713782 |
58 |
+ if [[ -n "${show_normandy_information}" ]] ; then |
59 |
+ elog |
60 |
+ elog "Upstream operates a service named Normandy which allows Mozilla to" |
61 |
+ elog "push changes for default settings or even install new add-ons remotely." |
62 |
+ elog "While this can be useful to address problems like 'Armagadd-on 2.0' or" |
63 |
+ elog "revert previous decisions to disable TLS 1.0/1.1, privacy and security" |
64 |
+ elog "concerns prevail, which is why we have switched off the use of this" |
65 |
+ elog "service by default." |
66 |
+ elog |
67 |
+ elog "To re-enable this service set" |
68 |
+ elog |
69 |
+ elog " app.normandy.enabled=true" |
70 |
+ elog |
71 |
+ elog "in about:config." |
72 |
+ fi |
73 |
} |
74 |
|
75 |
pkg_postrm() { |
76 |
|
77 |
diff --git a/www-client/firefox/firefox-74.0-r2.ebuild b/www-client/firefox/firefox-74.0-r2.ebuild |
78 |
index 11e72681132..739761cdb2f 100644 |
79 |
--- a/www-client/firefox/firefox-74.0-r2.ebuild |
80 |
+++ b/www-client/firefox/firefox-74.0-r2.ebuild |
81 |
@@ -793,18 +793,23 @@ pkg_postinst() { |
82 |
elog |
83 |
fi |
84 |
|
85 |
- local show_doh_information |
86 |
+ local show_doh_information show_normandy_information |
87 |
|
88 |
if [[ -z "${REPLACING_VERSIONS}" ]] ; then |
89 |
# New install; Tell user that DoH is disabled by default |
90 |
show_doh_information=yes |
91 |
+ show_normandy_information=yes |
92 |
else |
93 |
local replacing_version |
94 |
for replacing_version in ${REPLACING_VERSIONS} ; do |
95 |
if ver_test "${replacing_version}" -lt 70 ; then |
96 |
# Tell user only once about our DoH default |
97 |
show_doh_information=yes |
98 |
- break |
99 |
+ fi |
100 |
+ |
101 |
+ if ver_test "${replacing_version}" -lt 74.0-r2 ; then |
102 |
+ # Tell user only once about our Normandy default |
103 |
+ show_normandy_information=yes |
104 |
fi |
105 |
done |
106 |
fi |
107 |
@@ -818,6 +823,23 @@ pkg_postinst() { |
108 |
elog "(\"Off by choice\") by default." |
109 |
elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." |
110 |
fi |
111 |
+ |
112 |
+ # bug 713782 |
113 |
+ if [[ -n "${show_normandy_information}" ]] ; then |
114 |
+ elog |
115 |
+ elog "Upstream operates a service named Normandy which allows Mozilla to" |
116 |
+ elog "push changes for default settings or even install new add-ons remotely." |
117 |
+ elog "While this can be useful to address problems like 'Armagadd-on 2.0' or" |
118 |
+ elog "revert previous decisions to disable TLS 1.0/1.1, privacy and security" |
119 |
+ elog "concerns prevail, which is why we have switched off the use of this" |
120 |
+ elog "service by default." |
121 |
+ elog |
122 |
+ elog "To re-enable this service set" |
123 |
+ elog |
124 |
+ elog " app.normandy.enabled=true" |
125 |
+ elog |
126 |
+ elog "in about:config." |
127 |
+ fi |
128 |
} |
129 |
|
130 |
pkg_postrm() { |