Description[Regression fix] [Data URI parser] Accept data URI with invalid mediatype data
r272022 introduced grammar check on the mediatype part in a data URI.
This broke applications that depend on the behavior that our
WebURLLoaderImpl and URLRequestDataJob accept data URIs with
incomplete mediatype such as "data:image;base64,xxx". Accept this kind
of data URI again for backward compatibility.
Instead, fallback to the default mediatype when
ParseMimeTypeWithoutParameter() returns false in DataURL::Parse() to
avoid generating Content-type header with invalid mediatype.
BUG=412479
Committed: https://crrev.com/5469386eaa6bd55fcd5540c570fb535f4d6667e3
Cr-Commit-Position: refs/heads/master@{#297593}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fixed InvalidMimeType unittest #
Total comments: 2
Patch Set 4 : Addressed #17 #Patch Set 5 : Refined the comment #
Total comments: 2
Patch Set 6 : Addressed #20 #Patch Set 7 : Fixed unit tests #
Messages
Total messages: 26 (5 generated)
|