Closed Bug 1268075 Opened 9 years ago Closed 9 years ago

Make DOM-exposed Addon.uninstall() reject on error

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aswan, Assigned: aswan)

References

Details

(Whiteboard: triaged)

In the DOM-exposed APIs wrapped by mozAddonManager, Addon.uninstall() currently returns a promise that resolves to a boolean indicating success or failure. But the idiomatic way to do this is to reject with an Error on failure. Let's fix uninstall() to do that.
Blocks: 1245993
Summary: Make DOM-exposed Addon.uninstal() reject on error → Make DOM-exposed Addon.uninstall() reject on error
Whiteboard: triaged
This got done along with bug 1308310.
Assignee: nobody → aswan
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.