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

Issue 308733005: Fix assert on unknown rule type in the BisonCSSParser::endRuleHeader. (Closed)

Created:
6 years, 6 months ago by elecro
Modified:
6 years, 5 months ago
CC:
alancutter (OOO until 2018), darktears, apavlov, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, kenneth.christiansen, rwlbuis, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix assert on unknown rule type in the BisonCSSParser::endRuleHeader. Allow the @media rules' media query to be more tolerant on malformed data. Move the at_rule_header_end after '{' token parsing to avoid double match on the rule when the Bison's error token seeks for a recovery point (thus avoiding the double call on the endRuleHeader). BUG=377488 TEST=webkit_unit_tests --gtest_filter=BisonCSSParserTest.MediaQuery Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178659

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
M Source/core/css/CSSGrammar.y View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/BisonCSSParserTest.cpp View 1 2 3 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
elecro
6 years, 6 months ago (2014-05-30 15:10:17 UTC) #1
eseidel
I'm not sure if the test you're using affects this parser or not? Yoav would ...
6 years, 6 months ago (2014-05-30 17:52:46 UTC) #2
Yoav Weiss
On 2014/05/30 17:52:46, eseidel wrote: > I'm not sure if the test you're using affects ...
6 years, 6 months ago (2014-05-30 18:33:52 UTC) #3
Julien - ping for review
https://codereview.chromium.org/308733005/diff/1/Source/core/css/parser/BisonCSSParser-in.cpp File Source/core/css/parser/BisonCSSParser-in.cpp (right): https://codereview.chromium.org/308733005/diff/1/Source/core/css/parser/BisonCSSParser-in.cpp#newcode2013 Source/core/css/parser/BisonCSSParser-in.cpp:2013: if (m_ruleHeaderType == CSSRuleSourceData::UNKNOWN_RULE) I don't think it's the ...
6 years, 6 months ago (2014-06-06 20:13:07 UTC) #4
elecro
Thanks for the info and sorry for the big delay. After additional debugging I've found ...
6 years, 5 months ago (2014-07-17 16:19:45 UTC) #5
Julien - ping for review
lgtm https://codereview.chromium.org/308733005/diff/20001/Source/core/css/parser/BisonCSSParserTest.cpp File Source/core/css/parser/BisonCSSParserTest.cpp (right): https://codereview.chromium.org/308733005/diff/20001/Source/core/css/parser/BisonCSSParserTest.cpp#newcode104 Source/core/css/parser/BisonCSSParserTest.cpp:104: for (unsigned i = 0; testCases[i].input; ++i) { ...
6 years, 5 months ago (2014-07-18 21:14:31 UTC) #6
alancutter (OOO until 2018)
https://codereview.chromium.org/308733005/diff/20001/Source/core/css/parser/BisonCSSParserTest.cpp File Source/core/css/parser/BisonCSSParserTest.cpp (right): https://codereview.chromium.org/308733005/diff/20001/Source/core/css/parser/BisonCSSParserTest.cpp#newcode104 Source/core/css/parser/BisonCSSParserTest.cpp:104: for (unsigned i = 0; testCases[i].input; ++i) { On ...
6 years, 5 months ago (2014-07-21 05:58:10 UTC) #7
elecro
Updated the CL, now using the ARRAY_SIZE macro.
6 years, 5 months ago (2014-07-22 08:30:51 UTC) #8
elecro
The CQ bit was checked by pgal.u-szeged@partner.samsung.com
6 years, 5 months ago (2014-07-22 12:33:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pgal.u-szeged@partner.samsung.com/308733005/60001
6 years, 5 months ago (2014-07-22 12:34:50 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 14:33:30 UTC) #11
Message was sent while issue was closed.
Change committed as 178659

Powered by Google App Engine
This is Rietveld 408576698