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

Issue 452293004: Fix crash when node is moved in a selection (Closed)

Created:
6 years, 4 months ago by Xianzhu
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Fix crash when node is moved in a selection Let RenderObject::canUpdateSelectionOnRootLineBoxes() return false if the renderer is in an orphaned render tree, to prevent RenderSelectionInfo from calling selectionRectForPaintInvalidation() which would cause the crash. BUG=396596 TEST=editing/selection/move-node-in-selection-crash.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180102

Patch Set 1 #

Patch Set 2 : Update test expectation #

Patch Set 3 : Forgot to upload the test #

Total comments: 6

Patch Set 4 : Make test not so fuzz #

Patch Set 5 : Update test expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
A LayoutTests/editing/selection/move-node-in-selection-crash.html View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/move-node-in-selection-crash-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Xianzhu
6 years, 4 months ago (2014-08-08 22:25:28 UTC) #1
Xianzhu
ping...
6 years, 4 months ago (2014-08-11 16:51:34 UTC) #2
eae
Levi would be a better reviewer for this.
6 years, 4 months ago (2014-08-11 22:51:48 UTC) #3
leviw_travelin_and_unemployed
Code change LGTM, but can we make the test a little less cluster-fuzzy? https://codereview.chromium.org/452293004/diff/40001/LayoutTests/editing/selection/move-node-in-selection-crash.html File ...
6 years, 4 months ago (2014-08-11 23:03:13 UTC) #4
Xianzhu
https://codereview.chromium.org/452293004/diff/40001/LayoutTests/editing/selection/move-node-in-selection-crash.html File LayoutTests/editing/selection/move-node-in-selection-crash.html (right): https://codereview.chromium.org/452293004/diff/40001/LayoutTests/editing/selection/move-node-in-selection-crash.html#newcode2 LayoutTests/editing/selection/move-node-in-selection-crash.html:2: .c2 + .c9 { position: fixed; height: 1px; } ...
6 years, 4 months ago (2014-08-12 17:32:41 UTC) #5
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 4 months ago (2014-08-12 17:32:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/452293004/60001
6 years, 4 months ago (2014-08-12 17:33:18 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-12 19:18:58 UTC) #8
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 4 months ago (2014-08-12 19:24:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/452293004/80001
6 years, 4 months ago (2014-08-12 19:25:01 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-12 21:02:21 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 21:40:37 UTC) #12
Message was sent while issue was closed.
Change committed as 180102

Powered by Google App Engine
This is Rietveld 408576698