Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Activation #782

Open
hvanops opened this issue Oct 3, 2024 · 1 comment
Open

User Activation #782

hvanops opened this issue Oct 3, 2024 · 1 comment
Labels
focus-area-proposal Focus Area Proposal

Comments

@hvanops
Copy link

hvanops commented Oct 3, 2024

Description

User activation is the mechanism to maintain active-user-interaction state that limits use of "abusable" APIs (e.g. opening popups or vibrating). Behaviour of 30+ web features are affected by how the user activation model is implemented in the browser. We have now defined in the HTML specification a simple-to-implement user activation model along with a test-friendly JS Interface. The major browsers have been gradually switching their internal model to the standard one, but some important differences remain, which ultimately affect the Interop of 30+ other web features mentioned above.

An external developer proposed this as an Interop goal in the past: 2022 and 2023. From the 2023 proposal:
“It appears that some web APIs use the modern user activation system, but some older web APIs use the old synchronous model (or some other restrictions). This makes the platform inconsistent, for example meaning developers can use async code with certain APIs but not others, and unnecessarily restricts the ability to use some older APIs.” - AshleyScirra

Specification

https://html.spec.whatwg.org/multipage/interaction.html#tracking-user-activation

Additional Signals

Standards Positions

Tests

Additional Signals

@hvanops hvanops added the focus-area-proposal Focus Area Proposal label Oct 3, 2024
@AshleyScirra
Copy link

Thanks for resubmitting this for 2025!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

2 participants