Fix null-dereference in AXNodeObject::AnchorElement
AXObjectCacheImpl::GetOrCreate(LayoutObject*) can return a nullptr if the node is an area element. This change makes sure that the AXObject is valid before calling |IsAnchor|. Bug: 996460 Change-Id: I63b966615aec010c6df03292addbcd0a71e405ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1772283Reviewed-by:Kevin Babbitt <kbabbitt@microsoft.com> Reviewed-by:
Aaron Leventhal <aleventhal@chromium.org> Commit-Queue: Adam Ettenberger <adettenb@microsoft.com> Cr-Commit-Position: refs/heads/master@{#691888}
Showing
Please register or sign in to comment