Closed Bug 1461947 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 11030 - Add regression test for https://crbug.com/843523.

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

arthursonzogni <arthursonzogni@chromium.org> wrote:
>  Add regression test for https://crbug.com/843523.
>  
>  Test that document.querySelector(":target") works when called in the
>  window.load event.
>  
>  This test is a subset of dom/nodes/Element-matches.html, the difference
>  is that this test is more lightweight. It causes the window.load event
>  to be send earlier. There is a race condition. Currently, it will
>  only work when FrameLoader::ProcessFragment is called before
>  Document::ImplicitClose().
>  
>  Probable fix:
>  https://chromium-review.googlesource.com/c/chromium/src/+/1057507
>  
>  Bug: 843523
>  Change-Id: Ibf7b0d7621b18c3dfefaaa323bbd335d86ce0652
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1061456
>  WPT-Export-Revision: 5a4e8046645b58733cd09de0436ca85391bd2e46
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 1 tests and 1 subtests
OK     : 1
PASS   : 1
https://hg.mozilla.org/mozilla-central/rev/07d83b88f14c
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.