Closed Bug 1525635 Opened 6 years ago Closed 6 years ago

Failed mozAddonManager installs don't properly cancel

Categories

(Toolkit :: Add-ons Manager, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(1 file, 1 obsolete file)

If a mozAddonManager fails for some reason in isUsableAddon, the addon is still installed but just disabled.

This could happen, for instance, if an addon AMO was marked for a particular version.

It's also going to happen with our new whitelisting policy.

aswan:

So I believe this is the right thing to do (the same thing we do here):

https://searchfox.org/mozilla-central/source/toolkit/mozapps/extensions/AddonManager.jsm#1815

What I'm having trouble with is how we would notify the user in this case (we need a browser) and if we can somehow communicate this back to the createInstall so it actually fails. Right now, the install just sits there.

Any ideas?

Attachment #9041841 - Flags: feedback?(aswan)
Attachment #9041841 - Attachment is obsolete: true
Attachment #9041841 - Flags: feedback?(aswan)
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/ba745ab8ec4a Properly handle mozAddonManager compatibility failure. r=aswan
Flags: needinfo?(mozilla)
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/203309bfe541 Properly handle mozAddonManager compatibility failure. r=aswan
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Flags: needinfo?(mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: