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

Issue 1954023002: Move asserts in FocusNavigationController. (Closed)

Created:
4 years, 7 months ago by kochi
Modified:
4 years, 7 months ago
Reviewers:
hayato
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move asserts in FocusNavigationController. An assertion in FocusController::findFocusableElementAcrossFocusScopesForward and FocusController::findFocusableElementAcrossFocusScopesBackward assumed that focus navigation happens from a focused element to another, but with the introduction of sequential focus navigation starting point, it is no longer true. Moving the assertion to where appropriate. BUG=609012 TEST=FocusControllerTest.DoNotCrash{1,2} Committed: https://crrev.com/65a82e070e5102bc29de52ddf6071018d703c304 Cr-Commit-Position: refs/heads/master@{#393194}

Patch Set 1 #

Patch Set 2 : remove assertion #

Total comments: 2

Patch Set 3 : add a unittest, remove layout test #

Total comments: 2

Patch Set 4 : readding assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -11 lines) Patch
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 3 7 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusControllerTest.cpp View 1 2 2 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954023002/1
4 years, 7 months ago (2016-05-06 10:41:01 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/223280)
4 years, 7 months ago (2016-05-06 11:59:53 UTC) #4
kochi
PTAL
4 years, 7 months ago (2016-05-09 04:05:40 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954023002/20001
4 years, 7 months ago (2016-05-09 05:08:34 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/225345)
4 years, 7 months ago (2016-05-09 06:01:20 UTC) #11
hayato
https://codereview.chromium.org/1954023002/diff/20001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (left): https://codereview.chromium.org/1954023002/diff/20001/third_party/WebKit/Source/core/page/FocusController.cpp#oldcode649 third_party/WebKit/Source/core/page/FocusController.cpp:649: ASSERT(!current || !isNonFocusableShadowHost(*current)); Could you help me to understand ...
4 years, 7 months ago (2016-05-10 07:58:15 UTC) #12
kochi
https://codereview.chromium.org/1954023002/diff/20001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (left): https://codereview.chromium.org/1954023002/diff/20001/third_party/WebKit/Source/core/page/FocusController.cpp#oldcode649 third_party/WebKit/Source/core/page/FocusController.cpp:649: ASSERT(!current || !isNonFocusableShadowHost(*current)); On 2016/05/10 07:58:15, hayato wrote: > ...
4 years, 7 months ago (2016-05-10 09:49:52 UTC) #13
kochi
On 2016/05/10 09:49:52, kochi wrote: > https://codereview.chromium.org/1954023002/diff/20001/third_party/WebKit/Source/core/page/FocusController.cpp > File third_party/WebKit/Source/core/page/FocusController.cpp (left): > > https://codereview.chromium.org/1954023002/diff/20001/third_party/WebKit/Source/core/page/FocusController.cpp#oldcode649 > ...
4 years, 7 months ago (2016-05-10 09:57:48 UTC) #14
hayato
Thanks. The point is how we should minimize the scarification. The current sequential focus navigation ...
4 years, 7 months ago (2016-05-10 11:10:13 UTC) #15
kochi
On 2016/05/10 11:10:13, hayato wrote: > Thanks. The point is how we should minimize the ...
4 years, 7 months ago (2016-05-10 11:16:21 UTC) #16
kochi
On 2016/05/10 11:16:21, kochi wrote: > On 2016/05/10 11:10:13, hayato wrote: > > Thanks. The ...
4 years, 7 months ago (2016-05-10 12:21:14 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954023002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954023002/40001
4 years, 7 months ago (2016-05-10 12:28:42 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 13:43:14 UTC) #22
kochi
PTAL
4 years, 7 months ago (2016-05-11 01:45:06 UTC) #23
kochi
On 2016/05/11 01:45:06, kochi wrote: > PTAL Ping?
4 years, 7 months ago (2016-05-11 10:11:09 UTC) #24
hayato
https://codereview.chromium.org/1954023002/diff/40001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1954023002/diff/40001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode907 third_party/WebKit/Source/core/page/FocusController.cpp:907: current = document->sequentialFocusNavigationStartingPoint(type); I think we can distinguish special ...
4 years, 7 months ago (2016-05-11 12:44:44 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954023002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954023002/60001
4 years, 7 months ago (2016-05-12 01:10:37 UTC) #27
kochi
PTAL https://codereview.chromium.org/1954023002/diff/40001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/1954023002/diff/40001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode907 third_party/WebKit/Source/core/page/FocusController.cpp:907: current = document->sequentialFocusNavigationStartingPoint(type); On 2016/05/11 12:44:44, hayato wrote: ...
4 years, 7 months ago (2016-05-12 02:09:21 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/220307)
4 years, 7 months ago (2016-05-12 03:16:49 UTC) #32
hayato
lgtm
4 years, 7 months ago (2016-05-12 03:49:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954023002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954023002/60001
4 years, 7 months ago (2016-05-12 03:59:46 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-12 06:08:33 UTC) #37
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 06:09:56 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/65a82e070e5102bc29de52ddf6071018d703c304
Cr-Commit-Position: refs/heads/master@{#393194}

Powered by Google App Engine
This is Rietveld 408576698