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

Issue 23604036: ASSERT: Bad cast from CSSInitialValue to CSSValueList (Closed)

Created:
7 years, 3 months ago by Julien - ping for review
Modified:
7 years, 3 months ago
Reviewers:
eseidel, darktears, inferno
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears
Visibility:
Public.

Description

ASSERT: Bad cast from CSSInitialValue to CSSValueList The issue was that we would cast to CSSValueList without checking the type of the CSSValue. After this change, we use the ASSERT'ing cast and explicitly check the type of the CSSValue before the cast. BUG=279286 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157255

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed the leak. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
A LayoutTests/fast/css/crash-inherit-value-font-family.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/crash-inherit-value-font-family-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Julien - ping for review
7 years, 3 months ago (2013-09-03 22:36:48 UTC) #1
eseidel
looks like a leak. not lgtm https://codereview.chromium.org/23604036/diff/1/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/23604036/diff/1/Source/core/css/CSSParser-in.cpp#newcode1156 Source/core/css/CSSParser-in.cpp:1156: return toCSSValueList(dummyStyle->getPropertyCSSValue(CSSPropertyFontFamily).leakRef()); leakRef? ...
7 years, 3 months ago (2013-09-03 22:40:23 UTC) #2
Julien - ping for review
https://codereview.chromium.org/23604036/diff/1/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/23604036/diff/1/Source/core/css/CSSParser-in.cpp#newcode1156 Source/core/css/CSSParser-in.cpp:1156: return toCSSValueList(dummyStyle->getPropertyCSSValue(CSSPropertyFontFamily).leakRef()); On 2013/09/03 22:40:23, eseidel wrote: > leakRef? ...
7 years, 3 months ago (2013-09-03 23:17:41 UTC) #3
eseidel
lgtm
7 years, 3 months ago (2013-09-04 22:22:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jchaffraix@chromium.org/23604036/6001
7 years, 3 months ago (2013-09-04 22:22:56 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 01:24:34 UTC) #6
Message was sent while issue was closed.
Change committed as 157255

Powered by Google App Engine
This is Rietveld 408576698