Open Bug 1781265 Opened 2 years ago Updated 4 months ago

Consider introducing a new WebExtensions waitUntil API method

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: rpl, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira][wecg])

Attachments

(1 file, 1 obsolete file)

As part of investigating improvements and tweaks to the event page lifetime policy (Bug 1748534 and Bug 1771203) we are considering introducing a new API method modeled after the ExtendableEvent's waitUntil method exposed in the web content service worker (and used for the DOM events that are able to spawn an active service worker, e.g. ExtendableMessageEvent, FetchEvent, PushEvent and NotificationEvent.

The new method is meant to allow the extension to explicitly signal to the UserAgent that some asynchronous work have been started in response to a WebExtensions API event which may still be in progress and may require extending the lifetime of the background extension content to allow that work to complete.

Depends on: 1785294

Comment on attachment 9288185 [details]
WIP: Bug 1781265 - Reset idle on API event listeners with a pending queryRunListener promise.

Revision D153525 was moved to bug 1785294. Setting attachment 9288185 [details] to obsolete.

Attachment #9288185 - Attachment is obsolete: true

Subsequent to 2022-12-08 meeting notes and the mention of this bug, please also consider the ideas in Proposal: Complete privileged page process even after closing to delay popup automatic closure

The subject can be further expanded if deemed useful as part of this bug.

Whiteboard: [addons-jira] → [addons-jira][wecg]
See Also: → 1874406
Assignee: lgreco → nobody
Status: ASSIGNED → NEW
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: