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

Issue 2796533002: OOPIF: Enable TabAndMouseFocusNavigation. (Closed)

Created:
3 years, 8 months ago by avallee
Modified:
3 years, 8 months ago
Reviewers:
alexmos, dcheng
CC:
chromium-reviews, blink-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

OOPIF: Enable TabAndMouseFocusNavigation. When advancing focus into an iframe, allow the frame to focus itself after deciding which element will be focused. This prevents sending a focus event to the previous element in that frame only to blur it immediately. Non-oopifs simply fire a focus event to the new element, the previously focused element in that frame received a blur event when another frame was focused. The test ensures a consistent state when mixing tab and clicking navigation. In specific cases, focus would early out when the element to advance to was previously focused, and never cleared when the mouse is clicked in another frame. BUG=702330 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2796533002 Cr-Commit-Position: refs/heads/master@{#463006} Committed: https://chromium.googlesource.com/chromium/src/+/6a539b43629daa2a49d5603fea5ade7d48d31dd2

Patch Set 1 #

Patch Set 2 : OOPIF: Enable TabAndMouseFocusNavigation. #

Patch Set 3 : Remove test logging. #

Patch Set 4 : Re-add bug reference in test. #

Total comments: 10

Patch Set 5 : Address alexmos comments - mac/ozone #

Patch Set 6 : Make the test work on other platforms. #

Patch Set 7 : rebase and fix NOTREACHED() in FrameSinkIdAtPoint. #

Total comments: 2

Patch Set 8 : Address dcheng comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -20 lines) Patch
M chrome/browser/site_per_process_interactive_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 3 4 5 6 7 3 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 41 (29 generated)
avallee
Reworked version of the CL at https://codereview.chromium.org/2780883003/
3 years, 8 months ago (2017-04-04 19:44:35 UTC) #13
alexmos
Thanks, this approach looks ok to me, and I think it makes more sense that ...
3 years, 8 months ago (2017-04-05 00:21:14 UTC) #14
avallee
https://codereview.chromium.org/2796533002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2796533002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode305 chrome/browser/site_per_process_interactive_browsertest.cc:305: #if (defined(OS_LINUX) && !defined(USE_OZONE)) || defined(OS_WIN) On 2017/04/05 00:21:13, ...
3 years, 8 months ago (2017-04-05 15:13:01 UTC) #17
alexmos
Thanks, LGTM once the SimulateMouseClickAt comment is addressed. https://codereview.chromium.org/2796533002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2796533002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode305 chrome/browser/site_per_process_interactive_browsertest.cc:305: #if ...
3 years, 8 months ago (2017-04-05 18:08:33 UTC) #20
dcheng
https://codereview.chromium.org/2796533002/diff/120001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2796533002/diff/120001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1005 third_party/WebKit/Source/core/page/FocusController.cpp:1005: // Focus wrapped around to the same element. Can ...
3 years, 8 months ago (2017-04-06 20:24:33 UTC) #26
avallee
https://codereview.chromium.org/2796533002/diff/120001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2796533002/diff/120001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1005 third_party/WebKit/Source/core/page/FocusController.cpp:1005: // Focus wrapped around to the same element. On ...
3 years, 8 months ago (2017-04-07 18:57:36 UTC) #29
avallee
3 years, 8 months ago (2017-04-07 18:57:38 UTC) #30
dcheng
LGTM
3 years, 8 months ago (2017-04-07 19:44:29 UTC) #31
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/2796533002/140001
3 years, 8 months ago (2017-04-07 21:06:56 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/6a539b43629daa2a49d5603fea5ade7d48d31dd2
3 years, 8 months ago (2017-04-07 21:17:05 UTC) #39
Charlie Reis
On 2017/04/07 21:17:05, commit-bot: I haz the power wrote: > Committed patchset #8 (id:140001) as ...
3 years, 8 months ago (2017-04-08 00:20:57 UTC) #40
Charlie Reis
3 years, 8 months ago (2017-04-08 00:21:33 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2804303004/ by creis@chromium.org.

The reason for reverting is: Test is flaky on Linux Tests bot:
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/54519.

Powered by Google App Engine
This is Rietveld 408576698