mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1140522: Ensure proper use of appDisabled and userDisabled in GMPProvider.jsm. r=mossop
This commit is contained in:
parent
fe55cac263
commit
f44cf7f44d
@ -214,13 +214,15 @@ GMPWrapper.prototype = {
|
||||
this._plugin.id); },
|
||||
|
||||
get isActive() { return !this.userDisabled; },
|
||||
get appDisabled() { return false; },
|
||||
|
||||
get userDisabled() {
|
||||
get appDisabled() {
|
||||
if (this._plugin.isEME && !GMPPrefs.get(KEY_EME_ENABLED, true)) {
|
||||
// If "media.eme.enabled" is false, all EME plugins are disabled.
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
get userDisabled() {
|
||||
return !GMPPrefs.get(KEY_PLUGIN_ENABLED, true, this._plugin.id);
|
||||
},
|
||||
set userDisabled(aVal) { GMPPrefs.set(KEY_PLUGIN_ENABLED, aVal === false,
|
||||
|
Loading…
Reference in New Issue
Block a user