From d101e43d14bee57a2f14981958e667f29690d018 Mon Sep 17 00:00:00 2001 From: Lukasz Anforowicz Date: Wed, 7 Feb 2018 10:12:05 -0800 Subject: [PATCH] XSDB: don't sniff for JSON parser breaker in text/css responses. Bug: 809259 Change-Id: I0b05c2955cf25e049c1558dc40e86b5e8e144371 --- xorb/css-with-json-parser-breaker.sub.html | 17 +++++++++++++++++ xorb/resources/css-with-json-parser-breaker.css | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 xorb/css-with-json-parser-breaker.sub.html create mode 100644 xorb/resources/css-with-json-parser-breaker.css diff --git a/xorb/css-with-json-parser-breaker.sub.html b/xorb/css-with-json-parser-breaker.sub.html new file mode 100644 index 00000000000000..75cdb0fb86322d --- /dev/null +++ b/xorb/css-with-json-parser-breaker.sub.html @@ -0,0 +1,17 @@ + + +XORB should not block text/css with a JSON parser breaker + + + + +

Header example

+

Paragraph body

+ + diff --git a/xorb/resources/css-with-json-parser-breaker.css b/xorb/resources/css-with-json-parser-breaker.css new file mode 100644 index 00000000000000..3ba33659844c17 --- /dev/null +++ b/xorb/resources/css-with-json-parser-breaker.css @@ -0,0 +1,3 @@ +)]}' +{} +h1 { color: red; }