Commit d93b2e1a authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Speculative fix for crash

Bug: 1136880
Change-Id: I32ccf9c9e02a845bd83739f93dc66ef57ea0ff4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2463325
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815761}
parent a0b85b89
......@@ -848,7 +848,7 @@ void RenderAccessibilityImpl::SendPendingAccessibilityEvents() {
// "ParentObject()" always gets the first ancestor that is included in tree
// (ignored or unignored), so it will never return objects that are not
// included in the tree at all.
if (!obj.AccessibilityIsIncludedInTree())
if (!obj.IsDetached() && !obj.AccessibilityIsIncludedInTree())
obj = obj.ParentObject();
for (; !obj.IsDetached() && obj.AccessibilityIsIgnored();
obj = obj.ParentObject()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment