Skip to content
Commit 11e49cc5 authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Chromium LUCI CQ
Browse files

Crash with aria-activedescendant pointing to <script>

Update code to null check return value of GetOrCreate(). It was
always possible for those methods to return null, if
IsNode/IsLayoutRelevantForAccessibility() is false, or for some
shadow DOM content, but it happens more often now, e.g. for
<style> and <script>.

Bug: 1172833
Change-Id: Ia1a02e9ed042c9e7be3ad81492adcfa286c4776b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2661719


Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: default avatarAaron Leventhal <aleventhal@chromium.org>
Reviewed-by: default avatarAlice Boxhall <aboxhall@chromium.org>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849089}
parent a30ca4ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment