Skip to content

Carry UserActivation across cross-document navigations #239

@nickcoury

Description

@nickcoury

There may be a better category for this issue, but starting here as it came up in the scope of cross-document View Transitions trying to mirror the experience of a SPA with a MPA architecture.

There are numerous APIs that require user activation, and some that aren't specced to but require it based on browser implementation.

This is scoped to the document, and is lost after a same-origin, cross-document navigation. Yet conceptually, if the same transition was a same-document SPA transition, it would be maintained. I can't think of a strong reason immediately that it couldn't be maintained same-origin.

This would be nice for actions or clicks that load a new page and then perform a user activation gated operation on the new page content. Examples:

  • Open PIP for a video on the next page with a single button.
  • Submitting an LLM request and playing a vibrate haptic on the next page as it streams in.
  • Showing a payment request during a shopping flow.

If I understand correctly, there may already be prior art for this with playing video on page load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions