From bfde2ecbe5f8eae46781ffc646eab6110f6945dd Mon Sep 17 00:00:00 2001 From: Siye Liu <44512924+siliu1@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:25:48 -0700 Subject: [PATCH] Add focus-without-user-activation logic to `dialog focusing steps` and `popover focusing steps` --- source | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source b/source index 89897f88922..aeef67099a5 100644 --- a/source +++ b/source @@ -61524,6 +61524,11 @@ interface HTMLDialogElement : HTMLElement { are as follows:

    +
  1. If this algorithm is triggered without transient use + activation and the target is not allowed to use the "focus-without-user-activation" feature, + then return.

  2. +
  3. Let control be null.

  4. If subject has the autofocus @@ -85739,6 +85744,11 @@ dictionary DragEventInit : MouseEventInit { element subject:

      +
    1. If this algorithm is triggered without transient use + activation and the target is not allowed to use the "focus-without-user-activation" feature, + then return.

    2. +
    3. If subject is a dialog element, then run the dialog focusing steps given subject and return.