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

Unified Diff: net/base/data_url_unittest.cc

Issue 54233002: Make net::DataURL's MIME string check stricter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split web_url_loader_impl change Created 6 years, 7 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 | « net/base/data_url.cc ('k') | net/base/mime_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/data_url_unittest.cc
diff --git a/net/base/data_url_unittest.cc b/net/base/data_url_unittest.cc
index 2d8e817c9809f773f32add1092fb4b8332909f5b..43f881f7084e86a478970ca2082e00cdbdde519d 100644
--- a/net/base/data_url_unittest.cc
+++ b/net/base/data_url_unittest.cc
@@ -88,6 +88,13 @@ TEST(DataURLTest, Parse) {
"US-ASCII",
"<html><body><b>hello world</b></body></html>" },
+ // Bad mime type
+ { "data:f(oo/bar;baz=1;charset=kk,boo",
+ false,
+ "",
+ "",
+ "" },
+
// the comma cannot be url-escaped!
{ "data:%2Cblah",
false,
« no previous file with comments | « net/base/data_url.cc ('k') | net/base/mime_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698