зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
57834e2a0a
Коммит
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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче