a11y: Return if AXPlatformNodeAuraLinux doesn't have AtkObject
This CL fixes the assertion 'G_IS_OBJECT (object)' with an early return if AXPlatformNodeAuraLinux doesn't have AtkObject as GetOrCreateAtkObject() could return nullptr if AX mode is not enabled. It also updates |accessibility_mode_| from BrowserAccessibilityStateImpl using AddAccessibilityModeFlags instead of direct assigning since it should call NotifyAddAXModeFlags() together when the mode is updated to sync it with the mode from AXPlatformNodeAuraLinux. Bug: 1061429 Change-Id: I0b4fa09d8d788608a403383c9e2c6123c618ccc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2103997Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Julie Kim <jkim@igalia.com> Cr-Commit-Position: refs/heads/master@{#751904}
Showing
This diff is collapsed.
Please register or sign in to comment