Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Issue 2732913005: <webview>: Add test to confirm the TAB key will escape the view. (Closed)

Created:
3 years, 9 months ago by avallee
Modified:
3 years, 7 months ago
Reviewers:
wjmaclean, alexmos
CC:
lfg, wjmaclean, chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

<webview>: Add test to confirm the TAB key will escape the view. There is a corner case where the embedder may think the element directly following the webview has focus prevents focusing moving out of the webview with the tab key. This problem is a combination of the embedder not knowing the webview is focused and some early out logic when landing on the next element because it is already focused. BUG=674219 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2732913005 Cr-Commit-Position: refs/heads/master@{#470855} Committed: https://chromium.googlesource.com/chromium/src/+/9edd151ead7afa9dc3f8cb3f4620adf949eb119c

Patch Set 1 #

Patch Set 2 : Fix the focus switch in blink. #

Patch Set 3 : Fix clearFocusedElement, only if focusing a child frame. #

Total comments: 18

Patch Set 4 : rebase (focus controller change in ToT) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -1 line) Patch
M chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/focus/embedder.js View 2 chunks +51 lines, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view/focus/inject_focus_take_focus.js View 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
avallee
PTAL: This seems to pass all blink tests and fixes the issue where focusing the ...
3 years, 9 months ago (2017-03-09 19:41:19 UTC) #15
alexmos
https://codereview.chromium.org/2732913005/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2732913005/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode673 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:673: IN_PROC_BROWSER_TEST_P(WebViewFocusInteractiveTest, Focus_FocusTakeFocus) { Since this is also a problem ...
3 years, 9 months ago (2017-03-10 07:08:33 UTC) #16
avallee
https://codereview.chromium.org/2732913005/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2732913005/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode673 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:673: IN_PROC_BROWSER_TEST_P(WebViewFocusInteractiveTest, Focus_FocusTakeFocus) { On 2017/03/10 07:08:33, alexmos wrote: > ...
3 years, 9 months ago (2017-03-13 19:18:11 UTC) #17
alexmos
+site-isolation-reviews, since this concerns OOPIF focus as well. Sorry for the delay! Took me a ...
3 years, 9 months ago (2017-03-16 17:37:11 UTC) #18
alexmos
https://codereview.chromium.org/2732913005/diff/40001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2732913005/diff/40001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode789 third_party/WebKit/Source/core/page/FocusController.cpp:789: newFrame = newFrame->client()->parent()) { On 2017/03/16 17:37:11, alexmos wrote: ...
3 years, 9 months ago (2017-03-16 17:59:47 UTC) #19
avallee
wjmaclean: PTAL. https://codereview.chromium.org/2732913005/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2732913005/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode673 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:673: IN_PROC_BROWSER_TEST_P(WebViewFocusInteractiveTest, Focus_FocusTakeFocus) { On 2017/03/16 17:37:11, alexmos ...
3 years, 7 months ago (2017-05-10 18:42:17 UTC) #23
wjmaclean
lgtm
3 years, 7 months ago (2017-05-10 23:51:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732913005/60001
3 years, 7 months ago (2017-05-11 06:57:55 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 07:05:15 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9edd151ead7afa9dc3f8cb3f4620...

Powered by Google App Engine
This is Rietveld 408576698