commit:     5e89a10bbd2ac62e729fbdb9422ab81357a47331
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 12 01:07:57 2017 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sun Nov 12 01:07:57 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=5e89a10b

www-cient/firefox - add useflag screenshot so businesses can disable for
security reasons.

 www-client/firefox/firefox-57.0_beta14.ebuild | 8 +++++++-
 www-client/firefox/metadata.xml               | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/www-client/firefox/firefox-57.0_beta14.ebuild 
b/www-client/firefox/firefox-57.0_beta14.ebuild
index 3bbfbc1..f211146 100644
--- a/www-client/firefox/firefox-57.0_beta14.ebuild
+++ b/www-client/firefox/firefox-57.0_beta14.ebuild
@@ -39,7 +39,7 @@ KEYWORDS="~amd64 ~x86"
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist eme-free +gmp-autoupdate hardened hwaccel jack nsplugin pgo 
selinux test"
+IUSE="bindist eme-free +gmp-autoupdate hardened hwaccel jack nsplugin pgo 
+screenshot selinux test"
 RESTRICT="!bindist? ( bindist )"
 
 PATCH_URIS=( 
https://dev.gentoo.org/~{anarchy,axs,polynomial-c}/mozilla/patchsets/${PATCH}.tar.xz
 )
@@ -285,6 +285,12 @@ src_install() {
                || die
        fi
 
+       if ! use screenshot; then
+               echo "pref(\"extensions.screenshots.disabled\", true);" >> \
+                       
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+                       || die
+       fi
+
        echo "pref(\"extensions.autoDisableScopes\", 3);" >> \
                
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
                || die

diff --git a/www-client/firefox/metadata.xml b/www-client/firefox/metadata.xml
index 66af8a4..7e0a3a9 100644
--- a/www-client/firefox/metadata.xml
+++ b/www-client/firefox/metadata.xml
@@ -19,6 +19,7 @@
        <flag name="pgo">Add support for profile-guided optimization using 
gcc-4.5,
                for faster binaries. This option will double the compile 
time.</flag>
        <flag name="rust">Enable support for using rust compiler  
(experimental)</flag>
+       <flag name="screenshot"> Allow to disable screenshot extension in 
global profile</flag>
        <flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg>
                instead of bundled.</flag>
        <flag name="system-harfbuzz">Use the system-wide 
<pkg>media-libs/harfbuzz</pkg>

Reply via email to