#1066: 'focus-without-user-activation' permissions policy

Visit on Github.

Opened Mar 7, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of a new permissions policy named 'focus-without-user-activation'.

The focus-without-user-activation permissions policy help controls the use of automated focus in a main frame or <iframe>. The proposed permissions policy can be used to limit the use of automatic focus. Essentially, when the policy is disabled in a document, scripted and automatic focus will only work if the focus has been initialized through user activation. This essentially means that autofocus will be disabled (unless a new element is inserted, with autofocus, as a result of user gesture). The scripted focus will also only work if it has started with user gesture or initiated from current frame's parent.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Previous early design review, if any: https://github.com/w3ctag/design-reviews/issues/####
  • Relevant time constraints or deadlines:
  • The group where the work on this specification is currently being done:
  • The group where standardization of this work is intended to be done (if different from the current group):
  • Major unresolved issues with or opposition to this specification:
  • This work is being funded by:

Discussions