Bug 1718990 [wpt PR 29568] - Address crash when changing aria-owned parents for a...
commit6a357aae1697047345aed871fec4599dc8e08874
authorAaron Leventhal <aleventhal@google.com>
Sat, 17 Jul 2021 09:46:44 +0000 (17 09:46 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 17 Jul 2021 19:32:35 +0000 (17 19:32 +0000)
tree3074280b4d4a167f3bd14f07fb53de6c86cab934
parenta339a9fb2af51536085238d2bd657e42605a43fa
Bug 1718990 [wpt PR 29568] - Address crash when changing aria-owned parents for a given node, a=testonly

Automatic update from web-platform-tests
Address crash when changing aria-owned parents for a given node

When changing from one aria-owned parent to another, do not first
RestoreParentOrPrune() as we normally would when *removing* aria-owns.
That method usually restores the natural parent, but it can also
remove the child when it's in a subtree that cannot have descendants,
e.g. when AXNodeObject::CanHaveChildren() returns false.

Bug: 1225582
Change-Id: I21d4e0ef2ed195a5a372c076df4357c781012c7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3002626
Commit-Queue: Daniel Libby <dlibby@microsoft.com>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Daniel Libby <dlibby@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#899228}

--

wpt-commits: 8ee764101e28e3215a29808cb2c490f2be799416
wpt-pr: 29568
testing/web-platform/tests/accessibility/crashtests/move-owned-inside-another-owned.html [new file with mode: 0644]