commit | ac6eb20fcb81e18d29a739e5efdca110c5c5e7cf | [log] [tgz] |
---|---|---|
author | Dominic Mazzoni <dmazzoni@chromium.org> | Fri Feb 09 16:56:20 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 09 16:56:20 2018 |
tree | fd079def671a3b8318cd52cfeaf6b24ccd701ba6 | |
parent | 7dc3a173d256cf3edbca00d8ca2680a4e4b32a97 [diff] |
Re-land: Improve sad tab accessibility on views platforms Original: http://crrev.com/c/887736 Reverted: http://crrev.com/c/909508 The first patch was reverted due to a failure on CFI bots. WebViewUnitTest was not properly creating a TestRenderViewHostFactory, so the WebContents automatically created by the WebView was improperly trying to cast a RenderViewHostImpl to a TestRenderViewHost. To work around this the tests can explicitly create WebContents rather than having WebView create it implicitly. Original description: This fixes an issue where the focusable views in the sad tab were not keyboard accessible. Adds a concept of a crashed tab overlay view to WebView. WebView now shows this view automatically when its WebContents is crashed, and hides it otherwise. SadTabView can now just set this directly, with no need for a widget. Handles the case of dragging a tab to a new browser window by reparenting the sad tab view to that new browser window's WebView. In addition, gives the sad tab a role of "alert dialog" and focuses the action button by default, improving the experience for screen reader users. TBR=sky@chromium.org,tapted@chromium.org Bug: 226871 Change-Id: Ie6e9afc7e13f67034fb9cfb066ae083477b61ce3 Reviewed-on: https://chromium-review.googlesource.com/910716 Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#535735}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .