CrossSiteDocumentClassifier::SniffForJSON returns true for some valid JS programs |
||
Issue description
The following program is valid JS, but CrossSiteDocumentClassifier::SniffForJSON will classify it as JSON:
{":";
console.log("hello world");
}
This can be fixed by teaching SniffForJSON to listen for the closing string character.
,
Dec 20 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Dec 20 2017