Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XSDB: don't sniff for JSON parser breaker in text/css responses.
Bug: 809259 Change-Id: I0b05c2955cf25e049c1558dc40e86b5e8e144371
- Loading branch information
1 parent
5ed12a3
commit d101e43
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>XORB should not block text/css with a JSON parser breaker</title> | ||
<link rel="stylesheet" type="text/css" | ||
href="http://{{domains[www1]}}:{{ports[http][0]}}/xorb/resources/css-with-json-parser-breaker.css"> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<body> | ||
<h1 id="header">Header example</h1> | ||
<p>Paragraph body</p> | ||
</body> | ||
<script> | ||
test(function() { | ||
var style = getComputedStyle(document.getElementById('header')); | ||
assert_equals(style.getPropertyValue('color'), 'rgb(255, 0, 0)'); | ||
}, "XORB should not block text/css with a JSON parser breaker"); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
)]}' | ||
{} | ||
h1 { color: red; } |