Closed Bug 1279046 Opened 9 years ago Closed 9 years ago

[Disco Pane] Expose onOperationCancelled event to content

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Iteration:
50.2 - Jul 4
Tracking Status
firefox50 --- fixed

People

(Reporter: muffinresearch, Assigned: aswan)

References

Details

Attachments

(1 file)

If a user installs an add-on via the new discovery pane and then clicks remove in about:addons#Extensions we get an onUninstalling event notification with needsRestart=true. If the user clicks undo in the about:addons#Extensions UI we don't get an event telling us that the user has cancelled the uninstallation. To fix this we'd need the onOperationCancelled event to be exposed to content alongside the other AddonListener events here: https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/addonManager.js#237 Once we have the onOperationCancelled event we can show the needsRestart UI and remove it when recieving a notice that the pending uninstall event has been cancelled.
Assignee: nobody → aswan
Blocks: 1245993
Status: NEW → ASSIGNED
Iteration: --- → 50.2
Attachment #8764979 - Flags: review?(rhelmer) → review+
Pushed by aswan@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/336e3e8c5ed2 Expose onOperationCancelled to a.m.o r=rhelmer
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: