Skip to content

Sec-Fetch-User and Sec-Fetch-Site for user-initiated UI navigations #71

@annevk

Description

@annevk

There's a set of actions that a user can take that are not well covered by the current specification nor by HTML's navigate:

  1. Clicking a bookmark
  2. Manipulating the address bar and hitting enter
  3. Clicking the refresh button
  4. Clicking the back button and there's no bfcache entry

It seems to me that in these cases Sec-Fetch-User is true and in a subset of these cases Sec-Fetch-Site is none (the first two).

I'm filing this here as

If sourceBrowsingContext's WindowProxy's [[Window]] value has transient activation, then set request's user-activation to true.

what is in HTML today cannot ever cover these scenarios. There are plans to refactor HTML's navigate algorithm so it can cover this better and it's probably not worth fixing this before that happens. In the meantime though implementations ought to agree on behavior.

cc @arturjanc @domenic @mikewest

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