mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 305067 When the extension datasource has incorrect app disabled data it should be possible to enable a compatible extension that has been app disabled. r=bsmedberg
This commit is contained in:
parent
57834e2a0a
commit
4c2ff0b6d7
@ -4390,7 +4390,9 @@ ExtensionManager.prototype = {
|
||||
*/
|
||||
enableItem: function(id) {
|
||||
var ds = this.datasource;
|
||||
if (ds.getItemProperty(id, "userDisabled") == "true") {
|
||||
if (ds.getItemProperty(id, "userDisabled") == "true" ||
|
||||
ds.getItemProperty(id, "appDisabled") == "true" &&
|
||||
ds.getItemProperty(id, "compatible") == "true") {
|
||||
this._setOp(id, OP_NEEDS_ENABLE);
|
||||
this._notifyAction(id, EM_ITEM_ENABLED);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user