Closed
Bug 1485541
Opened 6 years ago
Closed 6 years ago
Experimental APIs can't define lifecycle events
Categories
(WebExtensions :: Experiments, enhancement)
WebExtensions
Experiments
Tracking
(firefox64 fixed)
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: markh, Assigned: aswan)
Details
Attachments
(1 file)
https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/lifecycle.html documents that APIs can define lifecycle events. However, attempts by an experimental API to define these events fails. The schema definition at https://searchfox.org/mozilla-central/rev/f2ac80ab7dbde5400a3400d463e07331194dec94/toolkit/components/extensions/schemas/experiments.json#105 only allows for a "startup" event. Even if we add the new events there, they never fire, because (IIUC), the experiment manager is a LazyAPIManager rather than an apiManager defined in ExtensionParent.jsm, which is where support for these events is wired up.
Assignee | ||
Comment 1•6 years ago
|
||
The problem with uninstall and update events is much larger: they require running code from an extension that is not active.
Flags: needinfo?(aswan)
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → aswan
Flags: needinfo?(aswan)
Comment 3•6 years ago
|
||
Comment on attachment 9006378 [details] Bug 1485541 Clarify documentation on extension lifecycle events Kris Maglione [:kmag] has approved the revision.
Attachment #9006378 -
Flags: review+
Assignee | ||
Comment 4•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d6f84a0a8794302974c1706b33065e5d71629958 Bug 1485541 Clarify documentation on extension lifecycle events DONTBUILD r=kmag
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d6f84a0a8794
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment 6•6 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?(aswan)
Assignee | ||
Comment 7•6 years ago
|
||
This patch was just a documentation update
Flags: needinfo?(aswan) → qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•