Skip to content

Commit 88c7d93

Browse files
authored
Remove cross-origin check from autofocus insertion steps
Step 6 is not needed anymore after the addition of "allow focus steps" in step 5 that checks if the element belongs to an element that allows the feature policy focus-without-user-activation. I.e., if an element is in a frame that allows the policy with *, then it should allow autofocus even if it's from a different origin. Fixes whatwg#11276.
1 parent 609285e commit 88c7d93

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

source

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82402,12 +82402,6 @@ dictionary <dfn dictionary>CommandEventInit</dfn> : <span>EventInit</span> {
8240282402
<li><p>If the <span>allow focus steps</span> given <var>target</var> return false, then
8240382403
return.</p></li>
8240482404

82405-
<li><p><span data-x="list iterate">For each</span> <var>ancestorNavigable</var> of
82406-
<var>target</var>'s <span>ancestor navigables</span>: if <var>ancestorNavigable</var>'s <span
82407-
data-x="nav-document">active document</span>'s <span
82408-
data-x="concept-document-origin">origin</span> is not <span>same origin</span> with
82409-
<var>target</var>'s <span data-x="concept-document-origin">origin</span>, then return.</p></li>
82410-
8241182405
<li><p>Let <var>topDocument</var> be <var>target</var>'s <span>node navigable</span>'s <span
8241282406
data-x="nav-top">top-level traversable</span>'s <span data-x="nav-document">active
8241382407
document</span>.</p></li>

0 commit comments

Comments
 (0)