Closed Bug 639536 Opened 15 years ago Closed 8 years ago

Allow cancelling async requests

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: mossop, Unassigned)

Details

An occasional problem with async requests is that the user can close a window that is still waiting for a response, then you end up with weird errors about missing Components etc. We should extend the API to support cancelling async operations. This can be achieved be returning something like an nsICancelable from the appropriate methods. Calling cancel on this object will cancel the request. In the first case this will probably be as simple as still running the operation to completion and then not calling the callback.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.