Do not remove objects from relation cache when refreshing them
When replacing an AXObject with a different type of object, and keeping the same id, we don't want to remove it from the relation cache, is its relations are still the same. In addition, make sure that AXIDs that are removed are removed from all relevant maps, so that the condition cannot occur where an AXID is removed from an owner children map, but is still tracked by the owner, thus its owned children do not think they are owned. The best failing test for this is in CL:2585685 which turns on accessibility for all browser tests, via browser_tests --gtest_filter="HistoryListTest.*". Bug: 1153576,1156936 Change-Id: I0bb4d38f78b343bd34d2e42e1cf695fcfd99460e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584610 Commit-Queue: Aaron Leventhal <aleventhal@chromium.org> Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#836772}
Showing
Please register or sign in to comment