Closed Bug 1463611 Opened 7 years ago Closed 7 years ago

Remove remaining uses of promiseWebExtensionStartup hack

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

This hack is largely unnecessary now that the add-on manager knows about the lifecycle of async bootstrap methods.
I'm ignoring the remaining embedded WebExtension tests, because those need to die by fire, and I do not want to touch them.
Comment on attachment 8979802 [details] Bug 1463611: Part 1 - Wait for all extensions to finish starting up in promiseStartupManager. https://reviewboard.mozilla.org/r/245954/#review252396
Attachment #8979802 - Flags: review?(aswan) → review+
Comment on attachment 8979803 [details] Bug 1463611: Part 2 - Wait for extension startup before resolving install() promise. https://reviewboard.mozilla.org/r/245956/#review252400
Attachment #8979803 - Flags: review?(aswan) → review+
Comment on attachment 8979805 [details] Bug 1463611: Part 3 - Fix nonsense. ?aswan https://reviewboard.mozilla.org/r/245958/#review252402 I assume the commit message was a typo and you actually wanted a review of this... ::: toolkit/mozapps/extensions/test/xpcshell/test_webextension.js:397 (Diff revision 2) > }); > > - await AddonManager.installTemporaryAddon(webext); > - let addon = await promiseAddonByID(ID); > - > // temporary add-on is installed and started nit: this isn't temporary any more
Attachment #8979805 - Flags: review+
There are still a number of uses promiseWebExtensionStartup() not covered by the patches here...
(In reply to Andrew Swan [:aswan] from comment #9) > There are still a number of uses promiseWebExtensionStartup() not covered by > the patches here... See comment 1.
Pushed by maglione.k@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c1f7ebe48f23 Part 1 - Wait for all extensions to finish starting up in promiseStartupManager. r=aswan https://hg.mozilla.org/integration/mozilla-inbound/rev/f546f7584212 Part 2 - Wait for extension startup before resolving install() promise. r=aswan https://hg.mozilla.org/integration/mozilla-inbound/rev/0461688b6a09 Part 3 - Fix nonsense. r=aswan
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: