Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a flaky html/dom/render-blocking WPT
This patch fixes a flaky WPT in html/dom/render-blocking/ that: - LoadObserver used to check whether `target instanceof EventTarget`, which doesn't work if `target` is in a subframe. This patch changes it to check whether it has `addEventListener` method. - The autofocus target used to be declared directly with markup, and as a result, it may be autofocused before `DOMContentLoaded` event, then the event listener added after DCL can't trigger. So this patch changes the element to be dynamically inserted after DCL. - The last promise test is supposed to be run after the font finishes loading, so this test adds a missing await for that Fixed: 1313014 Change-Id: Ia55667a1876f76eb0bb4f91543f2c1e9f2f4a8c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3575243 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#990135}
- Loading branch information
1 parent
1ef905e
commit 5367959
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters