1 |
commit: 1439e84dcb0864aa6e2f2e7b16e1bce0ec5bb3f9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 27 22:43:21 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=1439e84d |
7 |
|
8 |
www-client/firefox-bin: disable Normandy service by default |
9 |
|
10 |
Closes: 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-bin/files/all-gentoo-3.js | 7 ++++ |
15 |
...-68.6.0.ebuild => firefox-bin-68.6.0-r1.ebuild} | 41 +++++++++++++++++++--- |
16 |
...-bin-74.0.ebuild => firefox-bin-74.0-r1.ebuild} | 26 ++++++++++++-- |
17 |
3 files changed, 68 insertions(+), 6 deletions(-) |
18 |
|
19 |
diff --git a/www-client/firefox-bin/files/all-gentoo-3.js b/www-client/firefox-bin/files/all-gentoo-3.js |
20 |
index ddc782fde36..867bf5e59a4 100644 |
21 |
--- a/www-client/firefox-bin/files/all-gentoo-3.js |
22 |
+++ b/www-client/firefox-bin/files/all-gentoo-3.js |
23 |
@@ -13,3 +13,10 @@ pref("browser.EULA.override", true); |
24 |
|
25 |
// We believe in user choice - disable DNS-over-HTTPS by default |
26 |
defaultPref("network.trr.mode", 5); |
27 |
+ |
28 |
+// Normandy web service allows upstream to push changes |
29 |
+// like changed default preferences or even add-ons to users |
30 |
+// without the need to re-release a new version. Because this |
31 |
+// happens without any user prompt we believe this should be |
32 |
+// disabled by default. |
33 |
+defaultPref("app.normandy.enabled", false); |
34 |
|
35 |
diff --git a/www-client/firefox-bin/firefox-bin-68.6.0.ebuild b/www-client/firefox-bin/firefox-bin-68.6.0-r1.ebuild |
36 |
similarity index 83% |
37 |
rename from www-client/firefox-bin/firefox-bin-68.6.0.ebuild |
38 |
rename to www-client/firefox-bin/firefox-bin-68.6.0-r1.ebuild |
39 |
index d95d92d0739..ebcea91ab14 100644 |
40 |
--- a/www-client/firefox-bin/firefox-bin-68.6.0.ebuild |
41 |
+++ b/www-client/firefox-bin/firefox-bin-68.6.0-r1.ebuild |
42 |
@@ -23,7 +23,7 @@ MOZ_P="${MOZ_PN}-${MOZ_PV}" |
43 |
|
44 |
MOZ_HTTP_URI="https://archive.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
45 |
|
46 |
-inherit mozlinguas-v2 nsplugins pax-utils xdg-utils |
47 |
+inherit mozlinguas-v2 nsplugins pax-utils xdg-utils eapi7-ver |
48 |
|
49 |
DESCRIPTION="Firefox Web Browser" |
50 |
SRC_URI="${SRC_URI} |
51 |
@@ -169,6 +169,10 @@ src_install() { |
52 |
} |
53 |
|
54 |
pkg_postinst() { |
55 |
+ # Update mimedb for the new .desktop file |
56 |
+ xdg_desktop_database_update |
57 |
+ xdg_icon_cache_update |
58 |
+ |
59 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
60 |
|| ! has_version 'net-misc/curl'; then |
61 |
einfo |
62 |
@@ -187,9 +191,38 @@ pkg_postinst() { |
63 |
ewarn "USE=-pulseaudio & USE=-alsa : For audio please either set USE=pulseaudio or USE=alsa!" |
64 |
fi |
65 |
|
66 |
- # Update mimedb for the new .desktop file |
67 |
- xdg_desktop_database_update |
68 |
- xdg_icon_cache_update |
69 |
+ local show_normandy_information |
70 |
+ |
71 |
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then |
72 |
+ # New install |
73 |
+ show_normandy_information=yes |
74 |
+ else |
75 |
+ local replacing_version |
76 |
+ for replacing_version in ${REPLACING_VERSIONS} ; do |
77 |
+ if ver_test "${replacing_version}" -lt 68.6.0-r1 ; then |
78 |
+ # Tell user only once about our Normandy default |
79 |
+ show_normandy_information=yes |
80 |
+ break |
81 |
+ fi |
82 |
+ done |
83 |
+ fi |
84 |
+ |
85 |
+ # bug 713782 |
86 |
+ if [[ -n "${show_normandy_information}" ]] ; then |
87 |
+ elog |
88 |
+ elog "Upstream operates a service named Normandy which allows Mozilla to" |
89 |
+ elog "push changes for default settings or even install new add-ons remotely." |
90 |
+ elog "While this can be useful to address problems like 'Armagadd-on 2.0' or" |
91 |
+ elog "revert previous decisions to disable TLS 1.0/1.1, privacy and security" |
92 |
+ elog "concerns prevail, which is why we have switched off the use of this" |
93 |
+ elog "service by default." |
94 |
+ elog |
95 |
+ elog "To re-enable this service set" |
96 |
+ elog |
97 |
+ elog " app.normandy.enabled=true" |
98 |
+ elog |
99 |
+ elog "in about:config." |
100 |
+ fi |
101 |
} |
102 |
|
103 |
pkg_postrm() { |
104 |
|
105 |
diff --git a/www-client/firefox-bin/firefox-bin-74.0.ebuild b/www-client/firefox-bin/firefox-bin-74.0-r1.ebuild |
106 |
similarity index 88% |
107 |
rename from www-client/firefox-bin/firefox-bin-74.0.ebuild |
108 |
rename to www-client/firefox-bin/firefox-bin-74.0-r1.ebuild |
109 |
index 8ec338ce7b0..cb012428042 100644 |
110 |
--- a/www-client/firefox-bin/firefox-bin-74.0.ebuild |
111 |
+++ b/www-client/firefox-bin/firefox-bin-74.0-r1.ebuild |
112 |
@@ -192,18 +192,23 @@ pkg_postinst() { |
113 |
ewarn "USE=-pulseaudio & USE=-alsa : For audio please either set USE=pulseaudio or USE=alsa!" |
114 |
fi |
115 |
|
116 |
- local show_doh_information |
117 |
+ local show_doh_information show_normandy_information |
118 |
|
119 |
if [[ -z "${REPLACING_VERSIONS}" ]] ; then |
120 |
# New install; Tell user that DoH is disabled by default |
121 |
show_doh_information=yes |
122 |
+ show_normandy_information=yes |
123 |
else |
124 |
local replacing_version |
125 |
for replacing_version in ${REPLACING_VERSIONS} ; do |
126 |
if ver_test "${replacing_version}" -lt 70 ; then |
127 |
# Tell user only once about our DoH default |
128 |
show_doh_information=yes |
129 |
- break |
130 |
+ fi |
131 |
+ |
132 |
+ if ver_test "${replacing_version}" -lt 74.0-r1 ; then |
133 |
+ # Tell user only once about our Normandy default |
134 |
+ show_normandy_information=yes |
135 |
fi |
136 |
done |
137 |
fi |
138 |
@@ -217,6 +222,23 @@ pkg_postinst() { |
139 |
elog "(\"Off by choice\") by default." |
140 |
elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." |
141 |
fi |
142 |
+ |
143 |
+ # bug 713782 |
144 |
+ if [[ -n "${show_normandy_information}" ]] ; then |
145 |
+ elog |
146 |
+ elog "Upstream operates a service named Normandy which allows Mozilla to" |
147 |
+ elog "push changes for default settings or even install new add-ons remotely." |
148 |
+ elog "While this can be useful to address problems like 'Armagadd-on 2.0' or" |
149 |
+ elog "revert previous decisions to disable TLS 1.0/1.1, privacy and security" |
150 |
+ elog "concerns prevail, which is why we have switched off the use of this" |
151 |
+ elog "service by default." |
152 |
+ elog |
153 |
+ elog "To re-enable this service set" |
154 |
+ elog |
155 |
+ elog " app.normandy.enabled=true" |
156 |
+ elog |
157 |
+ elog "in about:config." |
158 |
+ fi |
159 |
} |
160 |
|
161 |
pkg_postrm() { |