Disallow escaped invalid Unicode characters in JSONParser.

Without this CL, the JSONParser will DCHECK when trying to construct a
StringValue while parsing these characters (see
JSONParserTest.DecodeUnicodeNonCharacter). In a Release build, the parsed
StringValue will contain malformed UTF-8, which could lead to further bugs down
the line.

Review URL: https://codereview.chromium.org/1214993004

Cr-Commit-Position: refs/heads/master@{#337229}
diff --git a/chrome/browser/safe_json_parser_browsertest.cc b/chrome/browser/safe_json_parser_browsertest.cc
index 119ecbc..4472a24 100644
--- a/chrome/browser/safe_json_parser_browsertest.cc
+++ b/chrome/browser/safe_json_parser_browsertest.cc
@@ -103,4 +103,7 @@
   TestParse(std::string());
   TestParse("☃");
   TestParse("\"☃\"");
+  TestParse("\"\\ufdd0\"");
+  TestParse("\"\\ufffe\"");
+  TestParse("\"\\ud83f\\udffe\"");
 }