mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1492352 Avoid keeping xpis open after an update to a disabled webextension r=kmag
--HG-- extra : rebase_source : a16a016cb1c5e9b5d188c9fdfc13a09b344b5ab6
This commit is contained in:
parent
18859e6634
commit
8d649d392e
@ -1206,7 +1206,7 @@ class BootstrapScope {
|
||||
}
|
||||
|
||||
update(data, reason) {
|
||||
Management.emit("update", {id: data.id, resourceURI: data.resourceURI});
|
||||
return Management.emit("update", {id: data.id, resourceURI: data.resourceURI});
|
||||
}
|
||||
|
||||
startup(data, reason) {
|
||||
|
@ -1797,6 +1797,10 @@ class AddonInstall {
|
||||
if (this.existingAddon) {
|
||||
await XPIInternal.BootstrapScope.get(this.existingAddon).update(
|
||||
this.addon, !this.addon.disabled, install);
|
||||
|
||||
if (this.addon.disabled) {
|
||||
flushJarCache(this.file);
|
||||
}
|
||||
} else {
|
||||
await install();
|
||||
await XPIInternal.BootstrapScope.get(this.addon).install(undefined, true);
|
||||
|
@ -1768,7 +1768,7 @@ class BootstrapScope {
|
||||
|
||||
async _install(reason, callUpdate, startup, extraArgs) {
|
||||
if (callUpdate) {
|
||||
this.callBootstrapMethod("update", reason, extraArgs);
|
||||
await this.callBootstrapMethod("update", reason, extraArgs);
|
||||
} else {
|
||||
this.callBootstrapMethod("install", reason, extraArgs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user