Probably don't set `media.eme.chromium-api.enabled` to `false`
https://dxr.mozilla.org/mozilla-central/source/dom/media/eme/MediaKeySystemAccess.cpp#108 https://dxr.mozilla.org/mozilla-central/source/dom/media/eme/MediaKeys.cpp#347 https://dxr.mozilla.org/mozilla-central/source/dom/media/gmp/GMPParent.cpp#743 https://dxr.mozilla.org/mozilla-central/source/dom/media/gmp/GMPParent.cpp#825 https://dxr.mozilla.org/mozilla-central/source/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp#82
Double check this one: https://dxr.mozilla.org/mozilla-central/source/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp#360
I don't think ChromiumCDMVideoDecoder and EMEVideoDecoder correspond to different GMP plugins, they are probably both Widevine, so there should be no hidden Chromium CDM GMP to disable. But that's more gut feeling than certitude.
The bug related to this is large and includes the creation of media.eme.chromium-api.enabled. I didn't read much of it but from the little I could read, the Chromium API is more advanced and is privileged in Mozilla's code. When EME is enabled we want to use it, and when EME is disabled I don't see anything that lets me think it is going to be used. Finally, my guts don't believe a separate GMP thingy is tied to this Chromium API, it should be Widevine.
If a user enables EME temporarily through the Options menu and we have the Chromium GMP API disabled he will get the inferior one, which may have issues, so probably the pref shouldn't be set to false.
Hi and thanks for your comment
if someone wants to (temporarily) enable EME they already need to change more than just that pref. (1820, 1825, 1830 and at least parts of 1840) We disable the installation and/or update of these plugins, hide the "Play DRM Content" checkbox, etc.
@Thorin-Oakenpants we should probably move the last 3 prefs in 1840 to 1820
Hi :)
Sorry I dumped links as a first pass and later on forgot to format them and give context and greetings :) Went a little too fast.
Indeed, if you even hide the checkbox there's no way a person is going to enable EME without going into about:config. Well at least I provided some background regarding this pref, which should be enabled any time EME is enabled. (i.e. Only on this time of the year when hell has frozen over, here, although I don't turn this chromium-api pref off since I want to minimize unneeded tweaks to Firefox so it stays on battle-tested code paths as much as possible)
Thanks for all the work regarding Firefox prefs :)
yeah np mate, nice to meet you :)
TBH I didn't bother to dive into the code when we added that pref because I simply don't care about EME. It sounded like we may need it and it's just one more pref that fits nicely under 1830.
Thanks for all the work regarding Firefox prefs :)
You're welcome. Thanks for participating.
Why? Are they only used for Widevine?
No, but they aren't only used for OpenH264 either. They disable the installation (and/or update) of both, therefore fit better under 1820: disable all GMP IMO