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

Issue 651303003: Splitting text can leave |start| and |end| Positions without renderers (Closed)

Created:
6 years, 2 months ago by rhogan
Modified:
6 years, 2 months ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

Splitting text can leave |start| and |end| Positions without renderers When establishing new start and end positions in ApplyStyleCommand::applyInlineStyle() be sure to return early if either of them end up null, just as we do if either of them are null initially. In this test case execCommand('CreateLink') adds an anchor HTML element in an SVG namespace so the text underneath validly does not receive a renderer. Without a renderer the text won't get a visible position value for the command so there's nothing to do but bail. BUG=339185, 397076 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184124

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/editing/apply-inline-style-to-element-with-no-renderer-crash.html View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A + LayoutTests/platform/linux/editing/apply-inline-style-to-element-with-no-renderer-crash-expected.png View Binary file 0 comments Download
A + LayoutTests/platform/linux/editing/apply-inline-style-to-element-with-no-renderer-crash-expected.txt View 1 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
rhogan
6 years, 2 months ago (2014-10-14 21:07:25 UTC) #2
yosin_UTC9
Can we prevent to apply execCommand inside SVG document? Creating A element in SVG document ...
6 years, 2 months ago (2014-10-15 01:26:41 UTC) #3
rhogan
On 2014/10/15 at 01:26:41, yosin wrote: > Can we prevent to apply execCommand inside SVG ...
6 years, 2 months ago (2014-10-15 20:17:14 UTC) #4
rhogan
https://codereview.chromium.org/651303003/diff/1/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/651303003/diff/1/LayoutTests/TestExpectations#newcode1373 LayoutTests/TestExpectations:1373: crbug.com/339185 editing/apply-inline-style-to-element-with-no-renderer-crash.html [ NeedsRebaseline ] On 2014/10/15 at 01:26:41, ...
6 years, 2 months ago (2014-10-15 20:20:30 UTC) #5
rhogan
yosin: ping. Got time to take another look?
6 years, 2 months ago (2014-10-20 18:11:27 UTC) #6
Stephen Chennney
I know that reducing and cleaning up clusterfuzz tests is a horrible experience, but I ...
6 years, 2 months ago (2014-10-21 19:23:40 UTC) #8
Stephen Chennney
LGTM. Thanks for slogging through it.
6 years, 2 months ago (2014-10-21 20:34:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651303003/60001
6 years, 2 months ago (2014-10-21 21:07:47 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 22:20:45 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 184124

Powered by Google App Engine
This is Rietveld 408576698