Closed Bug 1695826 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 27853 - html: autofocus should work even if the URL contains a non-empty fragment

Categories

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

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Kent Tamura <tkent@chromium.org>' wrote:

html: autofocus should work even if the URL contains a non-empty fragment

This CL implements the specification change of [1].

  • Check existence of :target instead of a non-empty fragment
  • Accept autofocus only if all ancestors are in the same origin
  • Fix WPT document-with-fragment-valid.html

[1] https://github.com/whatwg/html/pull/6204

Bug: 1046357
Change-Id: Ic83b00b7b48ee94f087974368b5daec98849fc49
Reviewed-on: https://chromium-review.googlesource.com/2727997
WPT-Export-Revision: 1336375146c6f787dea098e9771496ce16ce8860

PR 27853 applied with additional changes from upstream: d05fefcf165fd03947238957b00b0ca35c45213c
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
PASS : 2

Chrome

PASS : 1
TIMEOUT: 2

Safari

FAIL : 1
TIMEOUT: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/308a083fb3a3
[wpt PR 27853] - html: autofocus should work even if the URL contains a non-empty fragment, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.