Closed
Bug 1461146
Opened 7 years ago
Closed 7 years ago
Make enable/disable/uninstall operations on AddonWrappers asynchronous
Categories
(Toolkit :: Add-ons Manager, enhancement, P3)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: kmag, Assigned: kmag)
References
Details
Attachments
(1 file)
Shutdown operations for add-ons often need to be asynchronous, so exposing things like the `userDisabled` setter as synchronous operations is essentially a lie. We need to make these operations explicitly asynchronous in order to support asynchronous startup/shutdown callbacks correctly.
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Priority: -- → P3
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8975304 [details]
Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods.
https://reviewboard.mozilla.org/r/243630/#review250848
I'm not clear on the intended scope here. You've made these functions async but for extensions they don't actually wait for the change to be fully applied.
Please clarify the intent of this patch and plans for subsequent bugs/patches.
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Andrew Swan [:aswan] from comment #2)
> I'm not clear on the intended scope here. You've made these functions async
> but for extensions they don't actually wait for the change to be fully
> applied.
> Please clarify the intent of this patch and plans for subsequent
> bugs/patches.
This is just an interface change, with updates to existing callers to make sure they can handle a small amount of asynchrony. It mostly just updates them to use the new API and make sure they don't expect the state to change instantly.
Bug 1461145 updates them to actually wait for bootstrap startup()/shutdown() functions to complete before resolving. Bug 1462855 builds on both patches to move install/uninstall operations to async IO, after the APIs and callers have been updated to properly deal with async startup/shutdown operations.
After those bugs land, there are probably some follow-ups we should do to remove hacks like promiseWebExtensionStartup, which it makes unnecessary. But that's merely nice to have, at this point.
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8975304 [details]
Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods.
https://reviewboard.mozilla.org/r/243630/#review251460
Attachment #8975304 -
Flags: review?(aswan) → review+
Assignee | ||
Comment 5•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0d1b763f2d9bbaf8eef417cf599c17e1cb98dc1
Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
Pushed by maglione.k@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0d1b763f2d9
Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Updated•7 years ago
|
Is manual testing required on this bug? If yes, please provide some STR and the proper extension(if required) or set the “qe-verify -“ flag.
Thanks!
Flags: needinfo?(kmaglione+bmo)
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(kmaglione+bmo) → qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•