diff options
author | 2017-11-11 19:07:57 -0600 | |
---|---|---|
committer | 2017-11-11 19:07:57 -0600 | |
commit | 5e89a10bbd2ac62e729fbdb9422ab81357a47331 (patch) | |
tree | f2bb3c5d76c45552617f2a837d7935e7cebc8014 | |
parent | www-client/firefox - version bump 57.0_beta14 (diff) | |
download | mozilla-5e89a10bbd2ac62e729fbdb9422ab81357a47331.tar.gz mozilla-5e89a10bbd2ac62e729fbdb9422ab81357a47331.tar.bz2 mozilla-5e89a10bbd2ac62e729fbdb9422ab81357a47331.zip |
www-cient/firefox - add useflag screenshot so businesses can disable for
security reasons.
-rw-r--r-- | www-client/firefox/firefox-57.0_beta14.ebuild | 8 | ||||
-rw-r--r-- | www-client/firefox/metadata.xml | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/www-client/firefox/firefox-57.0_beta14.ebuild b/www-client/firefox/firefox-57.0_beta14.ebuild index 3bbfbc1e..f211146f 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 66af8a40..7e0a3a9e 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> |