gecko-dev/toolkit
Chris Pearce 84da183105 Bug 1294649 - Don't show EME plugins in the plugin list that are disabled. r=spohl
I noticed that on Linux is you have 'Play DRM content' unchecked, and then
open about:addons > plugins, and then check 'Play DRM content', that the
Adobe CDM then appears in the about:addons > plugins list.

This is because in GMPWrapper.onPrefEMEGlobalEnabledChanged() we're taking the
branch that calls AddonManagerPrivate addon listeners.

We're doing that because we're only checking the GMPWrapper.appDisabled on
that branch, and so if EME is enabled, we'll go down that path for the Adobe
CDM on Linux, even though the CDM itself isn't visible/supported on Linux.

So we should instead only go down that path if EME is enabled, *and* if the
GMP is not hidden. We can uninstall the GMP if it's hidden or EME is
disabled, as there's not much point in keeping the plugin around if its
disabled.

This means toggling the 'Play DRM Content' checkbox doesn't make the
Adobe CDM appear in the plugins list, and also if the Widevine CDM is
explicitly disabled, it still appears in the plugins list if 'Play DRM
Content' is checked, but it appears in a disabled state. As you'd expect.


MozReview-Commit-ID: Fq10vnhiaKO

--HG--
extra : rebase_source : 6cbfa621a6548e8e5c70e239a7d358bbb6e0eac4
2016-08-16 16:15:45 +12:00
..
components Bug 1293513 - Only setup login manager's progress listener for formless passwords inputs. r=Dolske 2016-08-15 19:55:03 -07:00
content Bug 1290567 - Remove inner-window-destroyed observer in process-content.js at xpcom-shutdown. r=Gijs 2016-08-16 09:32:14 -04:00
crashreporter Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
forgetaboutsite Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh 2016-08-04 03:28:58 -04:00
identity Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh 2016-08-04 03:28:58 -04:00
library Bug 1295666 - Build byteorder as a separate crate. r=kinetik 2016-08-16 11:06:46 -07:00
locales Bug 1290756 - Remove Help Viewer from Toolkit. r=gps 2016-07-31 14:08:00 +02:00
modules Merge fx-team to central, a=merge 2016-08-15 14:49:11 -07:00
mozapps Bug 1294649 - Don't show EME plugins in the plugin list that are disabled. r=spohl 2016-08-16 16:15:45 +12:00
obsolete Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh 2016-08-04 03:28:58 -04:00
pluginproblem Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
profile Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
system Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
themes Merge m-c to autoland, a=merge 2016-08-12 16:30:03 -07:00
xre Bug 1287626 - Add globally unique nsIXULAppinfo.uniqueProcessID r=billm 2016-08-10 16:07:40 -07:00
.eslintrc Bug 1294619 - Update jsdownloads code to enable the no-ex-assign rule for ESLint. r=jaws 2016-08-12 11:52:29 -04:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz.configure Bug 1289634 - Enable Widevine EME by default in browser builds. r=glandium 2016-07-29 17:14:55 +12:00
toolkit.mozbuild Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester 2016-08-06 00:49:26 -04:00