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

Issue 1288883002: Make SelectionController not to set invalid selection by mouse down (Closed)

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

Description

Do not set invalid selection on mouse down This patch changes |SelectionController| not to set invalid selection by mouse button down. When processing mouse button down, Blink dispatches "selectstart" event then updates selection. Before this patch, Blink attempts to set invalid selection which invalidate by "selectstart" event handler. BUG=407791 TEST=LayoutTests/editing/selection/selectstart-event-crash.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200521

Patch Set 1 : 2015-08-13T18:06:32 #

Patch Set 2 : 2015-08-13T18:38:20 Remove ASSERTs #

Total comments: 2

Patch Set 3 : 2015-08-13T18:48:09 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
A LayoutTests/editing/selection/selectstart-event-crash.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/editing/SelectionController.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/editing/VisibleSelection.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
yosin_UTC9
PTAL
5 years, 4 months ago (2015-08-13 09:29:06 UTC) #2
hajimehoshi
lgtm > This patch changes |SelectionController| not to se invalid selection by s/se/see/ https://codereview.chromium.org/1288883002/diff/20001/LayoutTests/editing/selection/selectstart-event-crash.html File ...
5 years, 4 months ago (2015-08-13 09:45:36 UTC) #3
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/1288883002/diff/20001/LayoutTests/editing/selection/selectstart-event-crash.html File LayoutTests/editing/selection/selectstart-event-crash.html (right): https://codereview.chromium.org/1288883002/diff/20001/LayoutTests/editing/selection/selectstart-event-crash.html#newcode17 LayoutTests/editing/selection/selectstart-event-crash.html:17: assert_true(selection.rangeCount == 0); On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 09:51:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288883002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288883002/40001
5 years, 4 months ago (2015-08-13 09:51:46 UTC) #7
commit-bot: I haz the power
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/92625)
5 years, 4 months ago (2015-08-13 10:49:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288883002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288883002/40001
5 years, 4 months ago (2015-08-14 01:56:53 UTC) #11
commit-bot: I haz the power
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/93091)
5 years, 4 months ago (2015-08-14 03:56:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288883002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288883002/40001
5 years, 4 months ago (2015-08-14 04:56:42 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 05:59:31 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200521

Powered by Google App Engine
This is Rietveld 408576698