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

Issue 22304002: Crash when calling getCueAsHTML() on a TextTrackCue with empty text (Closed)

Created:
7 years, 4 months ago by vcarbune.chromium
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, vcarbune.chromium, adamk+blink_chromium.org
Visibility:
Public.

Description

Crash when calling getCueAsHTML() on a TextTrackCue with empty text. Even if the TextTrackCue text is empty, a document fragment should still be returned as a result value when calling getCueAsHTML(). Currently, the call crashes the browser, when the cue text is "". TEST=Added relevant test case. R=acolwell,jchaffraix BUG=261653 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155890

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated #

Total comments: 1

Patch Set 3 : Removed meta tag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -3 lines) Patch
A LayoutTests/media/track/track-cue-empty-crash.html View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/media/track/track-cue-empty-crash-expected.txt View 1 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/html/track/WebVTTParser.cpp View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
vcarbune.chromium
Probably this crash is present in stable/beta channels too.
7 years, 4 months ago (2013-08-05 21:56:25 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/22304002/diff/1/LayoutTests/media/track/track-cue-empty-crash.html File LayoutTests/media/track/track-cue-empty-crash.html (right): https://codereview.chromium.org/22304002/diff/1/LayoutTests/media/track/track-cue-empty-crash.html#newcode12 LayoutTests/media/track/track-cue-empty-crash.html:12: var emptyCue = new TextTrackCue(0, 0, ""); Should passing ...
7 years, 4 months ago (2013-08-05 23:40:31 UTC) #2
vcarbune.chromium
Updated code and test case. PTAL. https://codereview.chromium.org/22304002/diff/1/LayoutTests/media/track/track-cue-empty-crash.html File LayoutTests/media/track/track-cue-empty-crash.html (right): https://codereview.chromium.org/22304002/diff/1/LayoutTests/media/track/track-cue-empty-crash.html#newcode12 LayoutTests/media/track/track-cue-empty-crash.html:12: var emptyCue = ...
7 years, 4 months ago (2013-08-09 18:47:26 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm
7 years, 4 months ago (2013-08-09 19:19:02 UTC) #4
Julien - ping for review
lgtm, usually the description should follow (loosely) what is done for git commits with a ...
7 years, 4 months ago (2013-08-09 20:12:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vcarbune@chromium.org/22304002/15001
7 years, 4 months ago (2013-08-09 23:21:35 UTC) #6
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 01:06:41 UTC) #7
Message was sent while issue was closed.
Change committed as 155890

Powered by Google App Engine
This is Rietveld 408576698