chromeos: Fix crash in shortcut viewer app with ChromeVox enabled
AXAuraObjCache::GetOrCreate(View* view) can return null if the View is not yet associated with a Widget. The shortcut viewer creates a ScrollView that creates a FocusRing before the ScrollView is attached to the Widget. Do what AutomationManagerAura does in this case and just don't send accessibility event updates for these unattached views. Bug: 889121 Test: added to views_mus_unittests Change-Id: Ica14908778e45b9b4ee06077bd31c92fb7dfca62 Reviewed-on: https://chromium-review.googlesource.com/1244456Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#594113}
Showing
Please register or sign in to comment