-
Abigail Klein authored
it automatically on page load. This CL is the first of two to fix a bug in which focus shifts to the webpage and automatically reads it on page load. Voiceover shifts focus to the webpage on the new tab page. We need to ensure that focus shifts to the webpage when a new page loads, and stays in the omnibox when a user opens a new tab. The fix: Do not fire AXLoadComplete when on Chrome's new tab page. An earlier fix to this bug replaced the AXLoadComplete events with AXNewDocumentLoadComplete events. Voiceover does not listen for the latter, so we remove them here. The urls for the Chrome new tab page were taken from chrome/common/url_constants.h. The browser_accessibility_manager_mac lives in content/ and does not depend on anything from chrome. For a longer explanation of this change, see this document: https://docs.google.com/document/d/19s6E0hjTyzB9XU44bdCpXNOaQ8c6nbLRnJbR1EsltL4/edit# Bug: 1049320 Change-Id: I7f1ef175b9db9c5978a5c3308291d1ba4e2b0531 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2356187Reviewed-by:
Aaron Leventhal <aleventhal@chromium.org> Commit-Queue: Abigail Klein <abigailbklein@google.com> Cr-Commit-Position: refs/heads/master@{#799788}
c0706b86