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

Issue 2474323002: Implement WebContentsViewChildFrame::TakeFocus. (Closed)

Created:
4 years, 1 month ago by avallee
Modified:
3 years, 11 months ago
Reviewers:
kenrb, wjmaclean, alexmos, dcheng
CC:
chromium-reviews, blink-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, lfg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement WebContentsViewChildFrame::TakeFocus. TakeFocus will take focus from the child and proceed to sequentially move focus in the parent WebContents. + Implement TakeFocus() ~ Move bulk of logic sending FrameMsg_AdvanceFocus to RenderFrame from RenderFrameProxyHost to RenderFrameHostImpl. ~ Prevent blink's FocusController from focusing the main frame if no frame is focused on a blur event. ~ Reenable 8 interactive browsertests for webview when using OOPIF. ~ Fix flakiness in OOPIF-webview versions of WebViewFocusInteractiveTest.FocusAndVisibility and WebViewFocusInteractiveTest.Focus_AdvanceFocus. BUG=610819 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2474323002 Cr-Commit-Position: refs/heads/master@{#445221} Committed: https://chromium.googlesource.com/chromium/src/+/c2ff1efb3496708d94fb12f79b3aeac6b1846b4b

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rerebase #

Patch Set 4 : Conflicted with my own cl https://codereview.chromium.org/2455133005/ #

Total comments: 20

Patch Set 5 : Fix cases where focus does not actually advance focus #

Total comments: 3

Patch Set 6 : Address comments and re-enable tests #

Patch Set 7 : Disable Focus_FocusBeforeNavigation until fixed. #

Patch Set 8 : rebase #

Patch Set 9 : Fix flaky tests and add tracking output for test run. #

Patch Set 10 : Remove logging code. #

Total comments: 6

Patch Set 11 : Fix header comment as requested by dcheng. #

Patch Set 12 : Rebase #

Patch Set 13 : remove logging and move pant kickcing out of loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -46 lines) Patch
M chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -22 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/focus_visibility/guest.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -12 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/focus_visibility/window.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/focus_visibility/window.js View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +84 lines, -10 lines 0 comments Download

Messages

Total messages: 83 (65 generated)
avallee
Allows focus navigation with the tab key to work properly. This is in preparation to ...
4 years, 1 month ago (2016-11-17 21:29:47 UTC) #11
alexmos
Thanks, this seems reasonable. A few comments below, and please also add a test for ...
4 years, 1 month ago (2016-11-22 02:45:27 UTC) #20
avallee
https://codereview.chromium.org/2474323002/diff/60001/content/browser/frame_host/render_frame_proxy_host.cc File content/browser/frame_host/render_frame_proxy_host.cc (right): https://codereview.chromium.org/2474323002/diff/60001/content/browser/frame_host/render_frame_proxy_host.cc#newcode363 content/browser/frame_host/render_frame_proxy_host.cc:363: type, (source_rfh On 2016/11/22 02:45:27, alexmos wrote: > Let's ...
4 years ago (2016-11-25 19:39:54 UTC) #21
alexmos
Looking good, a couple more questions and still waiting for a test. https://codereview.chromium.org/2474323002/diff/60001/content/browser/web_contents/web_contents_view_child_frame.cc File content/browser/web_contents/web_contents_view_child_frame.cc ...
4 years ago (2016-11-28 23:52:24 UTC) #26
avallee
https://codereview.chromium.org/2474323002/diff/60001/content/browser/web_contents/web_contents_view_child_frame.cc File content/browser/web_contents/web_contents_view_child_frame.cc (right): https://codereview.chromium.org/2474323002/diff/60001/content/browser/web_contents/web_contents_view_child_frame.cc#newcode155 content/browser/web_contents/web_contents_view_child_frame.cc:155: void WebContentsViewChildFrame::TakeFocus(bool reverse) { On 2016/11/28 23:52:23, alexmos wrote: ...
4 years ago (2016-12-09 21:16:52 UTC) #40
alexmos
Thanks for the explanations. LGTM, though it looks like a couple of the re-enabled tests ...
4 years ago (2016-12-12 22:41:15 UTC) #41
avallee
wjmaclean: chrome/ kenrb: ipc comment rubber stamp. dcheng: blink Hi alexmos@ I think that the ...
3 years, 11 months ago (2017-01-11 00:48:49 UTC) #54
kenrb
ipc lgtm, although not really necessary because dcheng is also an IPC owner.
3 years, 11 months ago (2017-01-11 16:18:10 UTC) #58
wjmaclean
On 2017/01/11 16:18:10, kenrb wrote: > ipc lgtm, although not really necessary because dcheng is ...
3 years, 11 months ago (2017-01-11 16:53:35 UTC) #59
dcheng
(sorry for the delayed review) https://codereview.chromium.org/2474323002/diff/200001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/2474323002/diff/200001/content/common/view_messages.h#newcode782 content/common/view_messages.h:782: // focusable element in ...
3 years, 11 months ago (2017-01-12 10:19:21 UTC) #60
avallee
https://codereview.chromium.org/2474323002/diff/200001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/2474323002/diff/200001/content/common/view_messages.h#newcode782 content/common/view_messages.h:782: // focusable element in chrome if this is the ...
3 years, 11 months ago (2017-01-12 20:00:23 UTC) #62
dcheng
Sorry for the long latency, I thought I sent out my drafts =( https://codereview.chromium.org/2474323002/diff/200001/third_party/WebKit/Source/core/page/FocusController.cpp File ...
3 years, 11 months ago (2017-01-20 07:02:38 UTC) #66
avallee
dcheng: PTAL. https://codereview.chromium.org/2474323002/diff/200001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2474323002/diff/200001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode860 third_party/WebKit/Source/core/page/FocusController.cpp:860: if (!m_focusedFrame && m_isFocused) On 2017/01/20 07:02:38, ...
3 years, 11 months ago (2017-01-20 14:19:11 UTC) #67
dcheng
On 2017/01/20 14:19:11, avallee wrote: > dcheng: PTAL. > > https://codereview.chromium.org/2474323002/diff/200001/third_party/WebKit/Source/core/page/FocusController.cpp > File third_party/WebKit/Source/core/page/FocusController.cpp (right): ...
3 years, 11 months ago (2017-01-20 18:37:20 UTC) #68
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/2474323002/220001
3 years, 11 months ago (2017-01-20 18:39:40 UTC) #71
commit-bot: I haz the power
Failed to apply patch for chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-20 20:35:38 UTC) #73
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/2474323002/240001
3 years, 11 months ago (2017-01-21 00:06:58 UTC) #80
commit-bot: I haz the power
3 years, 11 months ago (2017-01-21 00:13:13 UTC) #83
Message was sent while issue was closed.
Committed patchset #12 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/c2ff1efb3496708d94fb12f79b3a...

Powered by Google App Engine
This is Rietveld 408576698