Skip to content

Grant time-based user activation from extension events that grant a user gesture #918

@oliverdunk

Description

@oliverdunk

In event listeners like action.onClicked, we grant a user gesture. This allows extension developers to call other APIs that have a user gesture requirement.

There is a lack of consistency around if this is granted just while the callback runs or for an extended time period. For example, Chrome currently only grants the gesture while the listener is running, preventing the use of asynchronous code before calling an API that needs the user gesture.

We should use the concept of User Activation consistently where any user gesture granted by the extensions system grants the gesture for a browser defined time-period.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions