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

Issue 17129003: Auto-closing at unexpected EOF for all entry points. (Closed)

Created:
7 years, 6 months ago by rune
Modified:
7 years, 6 months ago
Reviewers:
apavlov, SeRya
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Auto-closing at unexpected EOF for all entry points. Don't wrap non-stylesheet (CSSOM rule, selectors, etc) input strings to CSS parser in braces as that will break auto-closing of blocks, parentheses, etc in the actual input string. BUG=163354 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152717

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added LayoutTest to show the need for TOKEN_EOF. #

Patch Set 3 : Rebased Patch Set 2 onto master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -78 lines) Patch
M LayoutTests/canvas/philip/tests/2d.fillStyle.parse.rgb-eof-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/canvas/philip/tests/2d.fillStyle.parse.rgba-eof-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/filters/custom-with-at-rule-syntax/parsing-at-rule-invalid-expected.txt View 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/css3/filters/custom-with-at-rule-syntax/parsing-at-rule-valid-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
M LayoutTests/css3/filters/custom-with-at-rule-syntax/script-tests/parsing-at-rule-invalid.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/filters/custom-with-at-rule-syntax/script-tests/parsing-at-rule-valid.js View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/css3/supports-cssom-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/cssom/insertrule-syntax-error-01.html View 1 1 chunk +8 lines, -0 lines 0 comments Download
A + LayoutTests/cssom/insertrule-syntax-error-01-expected.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/css/parsing-unexpected-eof.html View 1 chunk +54 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/parsing-unexpected-eof-expected.txt View 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/svg/dom/rgb-color-parser-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/canvas/philip/tests/2d.fillStyle.parse.rgb-eof-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/canvas/philip/tests/2d.fillStyle.parse.rgba-eof-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSGrammar.y.in View 1 2 20 chunks +58 lines, -52 lines 0 comments Download
M Source/core/css/CSSParser.cpp View 1 2 10 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rune
7 years, 6 months ago (2013-06-15 00:22:58 UTC) #1
SeRya
lgtm https://codereview.chromium.org/17129003/diff/1/Source/core/css/CSSGrammar.y.in File Source/core/css/CSSGrammar.y.in (right): https://codereview.chromium.org/17129003/diff/1/Source/core/css/CSSGrammar.y.in#newcode332 Source/core/css/CSSGrammar.y.in:332: INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF { Wouldn't it ...
7 years, 6 months ago (2013-06-16 09:52:37 UTC) #2
rune
On 2013/06/16 09:52:37, SeRya wrote: > https://codereview.chromium.org/17129003/diff/1/Source/core/css/CSSGrammar.y.in#newcode332 > Source/core/css/CSSGrammar.y.in:332: INTERNAL_RULE_SYM maybe_space valid_rule > maybe_space TOKEN_EOF ...
7 years, 6 months ago (2013-06-16 18:59:12 UTC) #3
rune
On 2013/06/16 18:59:12, rune wrote: > No, without the TOKEN_EOF an input string that contains ...
7 years, 6 months ago (2013-06-16 19:13:47 UTC) #4
apavlov
lgtm
7 years, 6 months ago (2013-06-19 10:36:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/17129003/6001
7 years, 6 months ago (2013-06-19 10:38:45 UTC) #6
commit-bot: I haz the power
Failed to apply patch for LayoutTests/css3/supports-cssom-expected.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-19 10:38:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/17129003/17001
7 years, 6 months ago (2013-06-19 11:34:13 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-19 12:18:23 UTC) #9
Message was sent while issue was closed.
Change committed as 152717

Powered by Google App Engine
This is Rietveld 408576698