mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243935 - "Restartless add-ons that get into the pending disable state never disable". r=aswan
This commit is contained in:
parent
bb74f34100
commit
e8afce7583
@ -2695,10 +2695,18 @@ this.XPIProvider = {
|
||||
let file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
|
||||
file.persistentDescriptor = XPIProvider.bootstrappedAddons[id].descriptor;
|
||||
let addon = createAddonDetails(id, XPIProvider.bootstrappedAddons[id]);
|
||||
XPIProvider.callBootstrapMethod(addon, file, "shutdown",
|
||||
BOOTSTRAP_REASONS.APP_SHUTDOWN);
|
||||
if (XPIProvider.bootstrappedAddons[id].disable)
|
||||
delete XPIProvider.bootstrappedAddons[aId];
|
||||
|
||||
// If the add-on was pending disable then shut it down and remove it
|
||||
// from the persisted data.
|
||||
if (XPIProvider.bootstrappedAddons[id].disable) {
|
||||
XPIProvider.callBootstrapMethod(addon, file, "shutdown",
|
||||
BOOTSTRAP_REASONS.ADDON_DISABLE);
|
||||
delete XPIProvider.bootstrappedAddons[id];
|
||||
}
|
||||
else {
|
||||
XPIProvider.callBootstrapMethod(addon, file, "shutdown",
|
||||
BOOTSTRAP_REASONS.APP_SHUTDOWN);
|
||||
}
|
||||
}
|
||||
Services.obs.removeObserver(this, "quit-application-granted");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user