Closed Bug 1550332 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 16641 - Don't allow cross-origin iframes to autofocus.

Categories

(Core :: DOM: Core & HTML, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 16641 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/16641
Details from upstream follow.

Mustaq Ahmed <mustaq@google.com> wrote:

Don't allow cross-origin iframes to autofocus.

According to the spec, the "autofocus" attribute shouldn't work for
cross-origin iframes, see Step 6 here:
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofocusing-a-form-control:-the-autofocus-attribute

FF works as per spec already.

Bug: 958378
Change-Id: Ia887b7ea67808284c61bdb39bd83b7788cf09db7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1593026
Commit-Queue: Mustaq Ahmed \<mustaq@chromium.org>
Reviewed-by: Dave Tapuska \<dtapuska@chromium.org>
Reviewed-by: Chris Harrelson \<chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#656189}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Failed to get results from try push
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/769b7661e8c5
[wpt PR 16641] - Don't allow cross-origin iframes to autofocus., a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.