mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 589672. Parsing of malformed namespace rules can skip over too many tokens while recovering. r=dbaron, a=dbaron
This commit is contained in:
parent
93fcecfc48
commit
ea10f33cc0
9
layout/reftests/bugs/589672-1-ref.html
Normal file
9
layout/reftests/bugs/589672-1-ref.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body { color: green; }
|
||||
</style>
|
||||
</head>
|
||||
<body>This should be green</body>
|
||||
</html>
|
13
layout/reftests/bugs/589672-1.html
Normal file
13
layout/reftests/bugs/589672-1.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body { color: red; }
|
||||
</style>
|
||||
<style>
|
||||
@namespace;
|
||||
body { color: green }
|
||||
</style>
|
||||
</head>
|
||||
<body>This should be green</body>
|
||||
</html>
|
@ -1494,4 +1494,5 @@ random-if(d2d) == 555388-1.html 555388-1-ref.html
|
||||
== 582037-2b.html 582037-2-ref.html
|
||||
== 584400-dash-length.svg 584400-dash-length-ref.svg
|
||||
== 585598-2.xhtml 585598-2-ref.xhtml
|
||||
== 589672-1.html 589672-1-ref.html
|
||||
== 586400-1.html 586400-1-ref.html
|
||||
|
@ -2084,6 +2084,7 @@ CSSParserImpl::ParseNameSpaceRule(RuleAppendFunc aAppendFunc, void* aData)
|
||||
}
|
||||
}
|
||||
REPORT_UNEXPECTED_TOKEN(PEAtNSUnexpected);
|
||||
UngetToken();
|
||||
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user