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

Issue 542553002: Fix crash when trying to iterate over words in an inline text box of length zero. (Closed)

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

Description

Fix crash when trying to iterate over words in an inline text box of length zero. BUG=373885 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181649

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test for null iterator rather than len == 0 #

Patch Set 3 : Got rid of assert, updated fixme #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -0 lines) Patch
A LayoutTests/accessibility/inline-text-word-boundary-causes-crash.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/inline-text-word-boundary-causes-crash-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/rendering/AbstractInlineTextBox.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
dmazzoni
6 years, 3 months ago (2014-09-04 07:57:51 UTC) #2
eseidel
https://codereview.chromium.org/542553002/diff/1/Source/core/rendering/AbstractInlineTextBox.cpp File Source/core/rendering/AbstractInlineTextBox.cpp (right): https://codereview.chromium.org/542553002/diff/1/Source/core/rendering/AbstractInlineTextBox.cpp#newcode134 Source/core/rendering/AbstractInlineTextBox.cpp:134: if (!len) Should this be moved to after wordBreakIterator ...
6 years, 3 months ago (2014-09-04 16:39:49 UTC) #3
dmazzoni
https://codereview.chromium.org/542553002/diff/1/Source/core/rendering/AbstractInlineTextBox.cpp File Source/core/rendering/AbstractInlineTextBox.cpp (right): https://codereview.chromium.org/542553002/diff/1/Source/core/rendering/AbstractInlineTextBox.cpp#newcode134 Source/core/rendering/AbstractInlineTextBox.cpp:134: if (!len) On 2014/09/04 16:39:49, eseidel wrote: > Should ...
6 years, 3 months ago (2014-09-04 16:46:57 UTC) #4
dmazzoni
BTW, do you happen to know why the :first-letter text-transform is resulting in an empty ...
6 years, 3 months ago (2014-09-04 16:48:58 UTC) #5
eseidel
I recall seeing 0len inline text boxes before. But I don't remember why. Levi might.
6 years, 3 months ago (2014-09-04 18:05:51 UTC) #7
eseidel
Oh. I remember why we used to see them. It was bugs in updateFirstLetter. I ...
6 years, 3 months ago (2014-09-04 18:06:32 UTC) #8
eseidel
It looks like we have a bunch of crashes in updateFirstLetter: https://code.google.com/p/chromium/issues/list?can=2&q=updateFirstLetter That's likely to ...
6 years, 3 months ago (2014-09-04 18:07:16 UTC) #9
dmazzoni
On 2014/09/04 18:07:16, eseidel wrote: > It looks like we have a bunch of crashes ...
6 years, 3 months ago (2014-09-04 18:11:08 UTC) #10
eseidel
If you want to make this change, please add an ASSERT(iterator) before it, and add ...
6 years, 3 months ago (2014-09-04 18:16:41 UTC) #11
dmazzoni
Adding an assert would mean I'd have to disable the layout test, right? @dsinclair, it ...
6 years, 3 months ago (2014-09-04 22:53:29 UTC) #13
dsinclair
On 2014/09/04 22:53:29, dmazzoni wrote: > Adding an assert would mean I'd have to disable ...
6 years, 3 months ago (2014-09-05 13:39:01 UTC) #14
eseidel
6 years, 3 months ago (2014-09-05 13:52:12 UTC) #15
dmazzoni
On 2014/09/05 13:39:01, dsinclair wrote: > Nothing jumps out at me with the layout test. ...
6 years, 3 months ago (2014-09-08 23:16:43 UTC) #16
dsinclair
lgtm
6 years, 3 months ago (2014-09-09 13:12:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/542553002/40001
6 years, 3 months ago (2014-09-09 13:58:18 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-09 14:44:04 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 181649

Powered by Google App Engine
This is Rietveld 408576698