-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instrument View::~View to ascertain recreation of AXViewObjWrapper
This change adds additional nuance to View::Lifecycle, makes it public, and uses it to DCHECK calls to AXAuraObjCache::GetOrCreate. Specifically, accessibility never expects GetOrCreate on a view which is destroying or destroyed. The change also adds an early return to GetOrCreate, if the view is detached. This occurs in ~View, when the view is removed as a child of its parent. Thus, the added DCHECK in AXAuraObjCache::GetOrCreate triggers narrowly for any codepaths from the start of ~View up to almost all of parent_->RemoveChildView(this) where view's parent_ is nullified in DoRemoveChildView. Bug: 1355560 Change-Id: If8817f88b90a0633898d6a6e073b85ab91fbbe26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3868127 Reviewed-by: Robert Liao <robliao@chromium.org> Commit-Queue: David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1047200}
- Loading branch information
1 parent
aa505d6
commit 82eb0c8
Showing
6 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters