Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1636)

Unified Diff: net/base/data_url.cc

Issue 555383003: [Regression fix] [Data URI parser] Accept data URI with invalid mediatype data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed InvalidMimeType unittest Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/data_url_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/data_url.cc
diff --git a/net/base/data_url.cc b/net/base/data_url.cc
index 0ec345ea6dbf4f89ed5701e132109e6c7e411a41..2146755e8f056a8ff5b159abec08216a1473e996 100644
--- a/net/base/data_url.cc
+++ b/net/base/data_url.cc
@@ -68,8 +68,6 @@ bool DataURL::Parse(const GURL& url, std::string* mime_type,
if (mime_type->empty()) {
// fallback to defaults if nothing specified in the URL:
mime_type->assign("text/plain");
- } else if (!ParseMimeTypeWithoutParameter(*mime_type, NULL, NULL)) {
asanka 2014/09/24 00:11:38 As mentioned elsewhere, it's still a bit worrisome
tyoshino (SeeGerritForStatus) 2014/09/24 05:43:29 Good point. It's been a while since I added this c
- return false;
}
if (charset->empty())
charset->assign("US-ASCII");
« no previous file with comments | « no previous file | net/base/data_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698