From fa38d7620fe9fbcc0b37e74d735181872fa4b5ef Mon Sep 17 00:00:00 2001 From: Aaron Leventhal Date: Tue, 9 Jan 2024 08:44:53 +0000 Subject: [PATCH] Bug 1873523 [wpt PR 43879] - [A11y] Gracefully handle parent repairs when role changes + aria-owns, a=testonly Automatic update from web-platform-tests [A11y] Gracefully handle parent repairs when role changes + aria-owns Partial revert of CL:4995912. This only reverts the change that used repair as a fallback in GetOrCreate(). Specifically, this restores code in GetOrCreate() that called RepairChildrenOfIncludedParent() when the parent was missing and not supplied by the caller. In the long term, we hope to remove cases where parents need to be repaired. Fixed: 1509936 Change-Id: I48f489736a59a2c66a7510d408ca97f58331c641 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5176871 Auto-Submit: Aaron Leventhal Commit-Queue: Jacques Newman Commit-Queue: Aaron Leventhal Commit-Queue: Chris Harrelson Reviewed-by: Jacques Newman Reviewed-by: Chris Harrelson Cr-Commit-Position: refs/heads/main@{#1244347} -- wpt-commits: 2fcb60d7e9f294400c6274d964428621ca6cd3d2 wpt-pr: 43879 --- .../aria-owned-with-role-change.html | 33 +++++++++++++++++++ .../aria-owns-with-role-change.html | 33 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 testing/web-platform/tests/accessibility/crashtests/aria-owned-with-role-change.html create mode 100644 testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html diff --git a/testing/web-platform/tests/accessibility/crashtests/aria-owned-with-role-change.html b/testing/web-platform/tests/accessibility/crashtests/aria-owned-with-role-change.html new file mode 100644 index 0000000000000..c5b2130969c01 --- /dev/null +++ b/testing/web-platform/tests/accessibility/crashtests/aria-owned-with-role-change.html @@ -0,0 +1,33 @@ + + + + + + +
+
+
+

+ + Child + +

+
+
+
+ + + diff --git a/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html b/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html new file mode 100644 index 0000000000000..13e1eaff6dd09 --- /dev/null +++ b/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html @@ -0,0 +1,33 @@ + + + + + + +
+
+
+

+ + Child + +

+
+
+
+ + +