1 |
commit: 5e89a10bbd2ac62e729fbdb9422ab81357a47331 |
2 |
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 12 01:07:57 2017 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 12 01:07:57 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=5e89a10b |
7 |
|
8 |
www-cient/firefox - add useflag screenshot so businesses can disable for |
9 |
security reasons. |
10 |
|
11 |
www-client/firefox/firefox-57.0_beta14.ebuild | 8 +++++++- |
12 |
www-client/firefox/metadata.xml | 1 + |
13 |
2 files changed, 8 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/www-client/firefox/firefox-57.0_beta14.ebuild b/www-client/firefox/firefox-57.0_beta14.ebuild |
16 |
index 3bbfbc1..f211146 100644 |
17 |
--- a/www-client/firefox/firefox-57.0_beta14.ebuild |
18 |
+++ b/www-client/firefox/firefox-57.0_beta14.ebuild |
19 |
@@ -39,7 +39,7 @@ KEYWORDS="~amd64 ~x86" |
20 |
|
21 |
SLOT="0" |
22 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
23 |
-IUSE="bindist eme-free +gmp-autoupdate hardened hwaccel jack nsplugin pgo selinux test" |
24 |
+IUSE="bindist eme-free +gmp-autoupdate hardened hwaccel jack nsplugin pgo +screenshot selinux test" |
25 |
RESTRICT="!bindist? ( bindist )" |
26 |
|
27 |
PATCH_URIS=( https://dev.gentoo.org/~{anarchy,axs,polynomial-c}/mozilla/patchsets/${PATCH}.tar.xz ) |
28 |
@@ -285,6 +285,12 @@ src_install() { |
29 |
|| die |
30 |
fi |
31 |
|
32 |
+ if ! use screenshot; then |
33 |
+ echo "pref(\"extensions.screenshots.disabled\", true);" >> \ |
34 |
+ "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
35 |
+ || die |
36 |
+ fi |
37 |
+ |
38 |
echo "pref(\"extensions.autoDisableScopes\", 3);" >> \ |
39 |
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
40 |
|| die |
41 |
|
42 |
diff --git a/www-client/firefox/metadata.xml b/www-client/firefox/metadata.xml |
43 |
index 66af8a4..7e0a3a9 100644 |
44 |
--- a/www-client/firefox/metadata.xml |
45 |
+++ b/www-client/firefox/metadata.xml |
46 |
@@ -19,6 +19,7 @@ |
47 |
<flag name="pgo">Add support for profile-guided optimization using gcc-4.5, |
48 |
for faster binaries. This option will double the compile time.</flag> |
49 |
<flag name="rust">Enable support for using rust compiler (experimental)</flag> |
50 |
+ <flag name="screenshot"> Allow to disable screenshot extension in global profile</flag> |
51 |
<flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg> |
52 |
instead of bundled.</flag> |
53 |
<flag name="system-harfbuzz">Use the system-wide <pkg>media-libs/harfbuzz</pkg> |