summaryrefslogtreecommitdiffstats
path: root/net/base/data_url_unittest.cc
diff options
context:
space:
mode:
authortyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-21 07:26:18 +0000
committertyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-21 07:27:52 +0000
commit733acc1b4ccdc2424c609d278cbaf4a6971ac9be (patch)
tree0cebb1670681c421a9cfd734fc9d54e496cdadce /net/base/data_url_unittest.cc
parent539922bc0f7868a2a50983505bdd873110eac0d0 (diff)
downloadchromium_src-733acc1b4ccdc2424c609d278cbaf4a6971ac9be.zip
chromium_src-733acc1b4ccdc2424c609d278cbaf4a6971ac9be.tar.gz
chromium_src-733acc1b4ccdc2424c609d278cbaf4a6971ac9be.tar.bz2
Revert 291007 "Set response headers for data URL."
> Set response headers for data URL. > > Resources represented by a data URL will stay being considered to be > unique origin resource but are changed to allow cross origin access by > the Access-Control-Allow-Origin header. > > We take this approach mainly because we want scripts in an iframe with > a data URL specified to its src attribute to be executed as a script on > a unique origin resource, not on the parent frame. > > We can choose to treat "loading" of data URL specially as same origin > while execution as different origin. But such an approach complicates > security policy checking algorithm. > > Grammar checking code is added to ensure we emit a valid content-type. > > Blink side CL https://codereview.chromium.org/54173002/ will be landed > first to temporarily disable layout tests that will break, and then > this CL will be landed. > > BUG=308768 > > Review URL: https://codereview.chromium.org/294193002 TBR=tyoshino@chromium.org Review URL: https://codereview.chromium.org/497443002 Cr-Commit-Position: refs/heads/master@{#291015} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/data_url_unittest.cc')
-rw-r--r--net/base/data_url_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/base/data_url_unittest.cc b/net/base/data_url_unittest.cc
index 5a5dbe8f..43f881f 100644
--- a/net/base/data_url_unittest.cc
+++ b/net/base/data_url_unittest.cc
@@ -40,10 +40,10 @@ TEST(DataURLTest, Parse) {
"" },
{ "data:;charset=,test",
- false,
- "",
- "",
- "" },
+ true,
+ "text/plain",
+ "US-ASCII",
+ "test" },
{ "data:TeXt/HtMl,<b>x</b>",
true,