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

Issue 2120223002: Make redo command not to set invalid selection (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
yoichio, Xiaocheng
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

Make redo command not to set invalid selection This patch makes "redo" command not to set invalid selection to |FrameSeleciton| via |Editor::changeSelectionAfterCommand()| to avoid |DCHECK()| in |FrameSelection::setSelection()|. BUG=623241 TEST=LayoutTests/editing/undo/redo-selection-modify-crash.html Committed: https://crrev.com/39b2a95285753ccf12ee6d0bff85509d1161e029 Cr-Commit-Position: refs/heads/master@{#403657}

Patch Set 1 : 2016-07-04T14:02:47 #

Patch Set 2 : 2016-07-04T15:06:28 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/editing/undo/redo-selection-modify-crash.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 chunk +7 lines, -1 line 2 comments Download

Messages

Total messages: 12 (4 generated)
yosin_UTC9
PTAL
4 years, 5 months ago (2016-07-04 07:20:59 UTC) #3
yoichio
lgtm
4 years, 5 months ago (2016-07-04 07:42:09 UTC) #4
Xiaocheng
https://codereview.chromium.org/2120223002/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2120223002/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode819 third_party/WebKit/Source/core/editing/Editor.cpp:819: if (newSelection.isValidFor(*frame().document())) The fix looks fine to me, but ...
4 years, 5 months ago (2016-07-04 08:01:37 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2120223002/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2120223002/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode819 third_party/WebKit/Source/core/editing/Editor.cpp:819: if (newSelection.isValidFor(*frame().document())) On 2016/07/04 at 08:01:37, Xiaocheng wrote: > ...
4 years, 5 months ago (2016-07-04 09:57:08 UTC) #6
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/2120223002/20001
4 years, 5 months ago (2016-07-04 09:57:23 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-04 10:00:37 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-04 10:00:43 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 10:02:28 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/39b2a95285753ccf12ee6d0bff85509d1161e029
Cr-Commit-Position: refs/heads/master@{#403657}

Powered by Google App Engine
This is Rietveld 408576698