implement runtime.onSuspend
Categories
(WebExtensions :: Compatibility, enhancement, P3)
Tracking
(firefox100 fixed)
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [addons-jira])
Attachments
(1 file)
runtime.onSuspend is called when an event page is about to be suspended.
See https://developer.chrome.com/docs/extensions/mv2/background_pages/
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8ca972dfa3d8 implement runtime.onSuspend for non-persistent background r=rpl,robwu
Comment 3•3 years ago
|
||
Backed out for causing Android Xpcshell failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/d772db66f8bfbd1e5d4dc4507ab9040ac3a180be
Failure log: https://treeherder.mozilla.org/logviewer?job_id=372592008&repo=autoland&lineNumber=5543
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e58ef84da469 implement runtime.onSuspend for non-persistent background r=rpl,robwu
Comment 5•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•2 years ago
|
Comment 6•2 years ago
|
||
The mdn/content articles already existed years before the implementation in Firefox, since the API was part of Chrome's extension API:
- https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onSuspend
- https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onSuspendCanceled
The compatibility information has been added at:
The release notes of 100 was updated at:
I did note the following caveat: The "event page" feature itself was not enabled by default until Firefox 106 (bug 1788108). So while extensions can already try to register event listeners for these, in practice the events would not fire until the extension has enabled support for event pages by adding "persistent": false AND the browser supports event pages (i.e. Firefox 106+).
Technically, the API would still be correct when it never fires the event, since an event page is allowed to, but not required to suspend.
Description
•