gecko-dev/testing/web-platform/tests/portals
Adithya Srinivasan 6345b136e1 Bug 1693313 [wpt PR 27658] - Portals: Deflake autofocus tests, a=testonly
Automatic update from web-platform-tests
Portals: Deflake autofocus tests

Autofocused elements are not guaranteed to be focused on load, flushing
autofocus candidates for a document is part of the rendering update
(see 11.5 in [1]). This CL updates tests to call requestAnimationFrame
after the document loads to ensure Document::FlushAutofocusCandidates()
[2] gets a chance to run.

[1] https://html.spec.whatwg.org/multipage/webappapis.html#update-the-rendering
[2] https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/dom/document.cc;l=7770;drc=15d361f31e050e55eb6b2ada1a02ea5b26eb4f70

Bug: 1178492
Change-Id: Iedc6758c47e2cff53a3bca499aa55e13437fe6ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2699127
Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
Reviewed-by: Lucas Gadani <lfg@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#855275}

--

wpt-commits: eec76c2cddc57690d5621d374ac5a62bd2f4ad81
wpt-pr: 27658
2021-03-08 15:12:49 +00:00
..
csp
history
references
resources Bug 1693313 [wpt PR 27658] - Portals: Deflake autofocus tests, a=testonly 2021-03-08 15:12:49 +00:00
xfo
META.yml
README.md
about-blank-cannot-host.html
htmlportalelement-event-handler-content-attributes.html
no-portal-in-sandboxed-popup.html
portal-activate-data.html
portal-activate-default.html
portal-activate-event-constructor.html
portal-activate-event.html
portal-non-http-navigation.html
portal-onload-event.html
portals-activate-empty-browsing-context.html
portals-activate-inside-iframe.html
portals-activate-inside-portal.html
portals-activate-network-error.html
portals-activate-no-browsing-context.html
portals-activate-resolution.html
portals-activate-twice.html
portals-activate-while-unloading.html
portals-adopt-predecessor.html
portals-api.html
portals-close-window.html
portals-cross-origin-load.sub.html
portals-focus.sub.html
portals-host-exposure.sub.html
portals-host-hidden-after-activation.html
portals-host-null.html
portals-host-post-message.sub.html
portals-navigate-after-adoption.html
portals-nested.html
portals-no-frame-crash.html
portals-post-message.sub.html
portals-referrer-inherit-header.html
portals-referrer-inherit-header.html.headers
portals-referrer-inherit-meta.html
portals-referrer.html
portals-rendering.html
portals-repeated-activate.html
portals-set-src-after-activate.html
predecessor-fires-unload.html

README.md

Portals

This directory contains tests for the portals feature, which seeks to enable seamless navigation. For more information, see:

This feature is currently in early development.