From 7f670abf04e445392309daf768fa37e07e1ddbac Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 8 Jan 2025 16:27:21 +0000 Subject: [PATCH] Bug 1940129 [wpt PR 49929] - Make dialog focus async when removing open attribute, a=testonly Automatic update from web-platform-tests Make dialog focus async when removing open attribute When the dialog's open attribute is removed which closes the dialog, we should make the focus async in order to prevent more script from running inside attribute removal. Context: https://github.com/whatwg/html/pull/10124#discussion_r1483640232 Bug: 341935362 Change-Id: I1b76f003e04b802b1868b427a0faddf5f19a3c5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6085725 Reviewed-by: Di Zhang Commit-Queue: Joey Arhar Cr-Commit-Position: refs/heads/main@{#1402551} -- wpt-commits: 58fd4f845204b88a3ae42b72b613a66e84cbb9f8 wpt-pr: 49929 --- .../dialog-close-via-attribute.tentative.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-close-via-attribute.tentative.html b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-close-via-attribute.tentative.html index 5c2e70f87a610..4ccac5b31cf2e 100644 --- a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-close-via-attribute.tentative.html +++ b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-close-via-attribute.tentative.html @@ -7,14 +7,20 @@ -hello world + + +