|
CSS Parser: Mark on stylesheets whether the first rule was valid
This makes the new CSS parser call setHasSyntacticallyValidCSSHeader so
that we can determine whether we should allow stylesheets to be used.
A StyleRuleCharset class is added so that we can properly signal whether
a rule was valid (now consumeAtRule and consumeQualifiedRule will return
nullptr exactly when the rule is valid). For more context, the logic
regarding disallowing certain stylesheets is discussed in bug 9877.
BUG= 330389
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192339
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+70 lines, -23 lines) |
Patch |
 |
M |
LayoutTests/http/tests/security/cross-origin-css.html
|
View
|
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/cross-origin-css-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/http/tests/security/resources/xorigincss7.html
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/StyleRule.h
|
View
|
1
2
|
4 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/StyleRule.cpp
|
View
|
|
5 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/StyleSheetContents.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/parser/CSSParserImpl.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/parser/CSSParserImpl.cpp
|
View
|
|
5 chunks |
+31 lines, -18 lines |
0 comments
|
Download
|
Total messages: 10 (4 generated)
|