diff --git a/source b/source index ef1bff95b27..a95c1a035d0 100644 --- a/source +++ b/source @@ -4876,6 +4876,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute data-x="">cross-origin-isolated", which has a default allowlist of 'self'. +
  • "focus-without-user-activation", which has a default allowlist of 'self'.
  • @@ -61520,6 +61524,9 @@ interface HTMLDialogElement : HTMLElement { are as follows:

      +
    1. If the allow focus steps given subject's node + document return false, then return.

    2. +
    3. Let control be null.

    4. If subject has the autofocus @@ -80532,6 +80539,9 @@ dictionary ToggleEventInit : EventInit {

    5. If current is null, then return.

    6. +
    7. If the allow focus steps given current's active document return false, then return.

    8. +
    9. Run the focusing steps with current.

    10. If current is a top-level traversable, user agents are encouraged @@ -80551,6 +80561,9 @@ dictionary ToggleEventInit : EventInit { method on elements, when invoked, must run the following steps:

        +
      1. If the allow focus steps given the element's node document + return false, then return.

      2. +
      3. If the element is marked as locked for focus, then return.

      4. Mark the element as locked for focus.

      5. @@ -80580,6 +80593,31 @@ dictionary ToggleEventInit : EventInit { keyboard users. Ignoring calls to this method would thus allow keyboard users to interact with the page.

        +

        The allow focus steps, given a Document object target, + are as follows:

        + +
          +
        1. If target is allowed to use the "focus-without-user-activation" feature, + then return true.

        2. + +
        3. +

          If any of the following are true:

          + +
            +
          • target's relevant global object has transient user activation; or

          • + +
          • target's node navigable's container, + if any, is marked as locked for focus,

          • +
          + +

          then return true.

          +
        4. + +
        5. Return false.

        6. +
        + @@ -80657,6 +80695,9 @@ dictionary ToggleEventInit : EventInit {
      6. If target's active sandboxing flag set has the sandboxed automatic features browsing context flag, then return.

      7. +
      8. If the allow focus steps given target return false, then + return.

      9. +
      10. For each ancestorNavigable of target's ancestor navigables: if ancestorNavigable's active document's DragEventInit : MouseEventInit { element subject:

          +
        1. If the allow focus steps given subject's node + document return false, then return.

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

        4. @@ -144394,6 +144438,7 @@ INSERT INTERFACES HERE Edward Welbourne, Edward Z. Yang, Ehsan Akhgari, + Ehsan Karamad, Eira Monstad, Eitan Adler, Eli Friedman, @@ -145032,6 +145077,7 @@ INSERT INTERFACES HERE Yu Han, Simon Spiegel, Simon Wülker, + Siye Liu, skeww, Smylers, Srirama Chandra Sekhar Mogali,