diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-03-28 12:49:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 12:49:42 -0700 |
commit | 0e3d0d844e89da74081f0e77c1da36a2eb3a8ff7 (patch) | |
tree | 0c1b27415dd5405f6a4fbbcee7b7aad0abc131ca /pkgs/applications/networking/browsers/firefox/common.nix | |
parent | 2cb9593cad3a351d064621def6875eee78feaecb (diff) | |
parent | 2a3247480291c808d227b29d125c7324f11b353f (diff) |
Merge pull request #166078 from mweinelt/firefox-drm
firefox: fix drmSupport flag
Diffstat (limited to 'pkgs/applications/networking/browsers/firefox/common.nix')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/common.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index d5ade4ffd42ad..9773ecb825cdc 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -99,10 +99,18 @@ , googleAPISupport ? geolocationSupport , webrtcSupport ? !privacySupport +# digital rights managemewnt + +# This flag controls whether Firefox will show the nagbar, that allows +# users at runtime the choice to enable Widevine CDM support when a site +# requests it. +# Controlling the nagbar and widevine CDM at runtime is possible by setting +# `browser.eme.ui.enabled` and `media.gmp-widevinecdm.enabled` accordingly +, drmSupport ? true + ## other , crashreporterSupport ? false -, drmSupport ? false , safeBrowsingSupport ? false # As stated by Sylvestre Ledru (@sylvestre) on Nov 22, 2017 at @@ -305,7 +313,7 @@ buildStdenv.mkDerivation ({ ++ flag gssSupport "negotiateauth" ++ flag webrtcSupport "webrtc" ++ flag crashreporterSupport "crashreporter" - ++ lib.optional drmSupport "--enable-eme=widevine" + ++ lib.optional (!drmSupport) "--disable-eme" ++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ] else [ "--disable-debug" "--enable-optimize" ]) |