Closed Bug 2085493 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 64063 - [a11y] Defer restoring parents of aria-owned children during removal

Categories

(Core :: Disability Access APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64063 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64063
Details from upstream follow.

Aeryn Moss <aerynm@google.com> wrote:

[a11y] Defer restoring parents of aria-owned children during removal

When an aria-owns owner is removed while immediate tree updates are
allowed, AXRelationCache::RemoveAXID() previously called
MaybeRestoreParentOfOwnedChild() -> RestoreParentOrPruneWithCleanLayout()
synchronously during removal. Restoring the child's parent inline can
trigger ChildrenChangedWithCleanLayout() and nested relation updates
that rebuild or clear an ancestor's children vector while
RemoveSubtree() is still iterating over it.

Instead, record unparented aria-owns children in
child_axids_to_restore_parent_ (and queue candidate owners in
owner_axids_to_update_) during RemoveAXID(), and restore or prune their
parents later in AXRelationCache::ProcessUpdatesWithCleanLayout() after
pending owner updates have been processed.

In AXObjectCacheImpl, flush deferred parent restorations as soon as the
outermost Remove(), RemoveSubtree(), or RemoveIncludedSubtree() call
completes, and defer radio button peer invalidation during immediate
tree updates so ancestor subtrees and unparented nodes are not touched
mid-removal.

Includes web tests and WPT crashtests for aria-owns parent restoration
from crrev.com/c/8614312.

Co-authored-by: Sky Debreuil \<skydebreuil@google.com>
Fixed: 572237022
Change-Id: I1a75b0b9fbede0533df92dacf3fdcfb9b2f7eae7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8594503
Reviewed-by: Lucas Radaelli \<lucasradaelli@google.com>
Commit-Queue: Aeryn Moss \<aerynm@google.com>
Cr-Commit-Position: refs/heads/main@{#1723783}

Component: web-platform-tests → Disability Access APIs
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 59 tests

Status Summary

Firefox

PASS: 2[GitHub] 59[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

PASS: 2

Safari

PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f071534ad19d https://hg.mozilla.org/integration/autoland/rev/efe55f00060e [wpt PR 64063] - [a11y] Defer restoring parents of aria-owned children during removal, a=testonly
Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.