Open Bug 1844044 Opened 10 months ago Updated 15 days ago

Prevent automatic suspension of event page for permissions.request (generally: APIs dependent on user feedback)

Categories

(WebExtensions :: General, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Forked from https://bugzilla.mozilla.org/show_bug.cgi?id=1771203#c4

There are some extension APIs that involve user interaction and can theoretically run forever. These methods should prevent the event page/SW from suspending until they return. For details, see:

As of writing, the list of APIs in Firefox is:

  • identity.launchWebAuthFlow
  • permissions.request

Note that this is distinct from bug 1844041: While other bug is about resetting the idle timer upon method invocation, this bug is about stopping the timer from starting for the whole duration of the API calls.

Severity: -- → S3
Type: enhancement → defect
Priority: -- → P2
Whiteboard: [
Whiteboard: [ → [addons-jira]

Note: implementing this would be significantly easier if the timer-based implementation changed to refcounting, see bug 1874406.

Depends on: 1874406
You need to log in before you can comment on or make changes to this bug.