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:
rob_strong%exchangecode.com 2005-08-19 02:43:23 +00:00
parent 57834e2a0a
commit 4c2ff0b6d7

View File

@ -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);
}