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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/xhr-vary-header.html

Issue 2290193003: Include the Origin header for XHR and Fetch API even if the request is same-origin
Patch Set: a Created 4 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
Index: third_party/WebKit/LayoutTests/http/tests/cache/xhr-vary-header.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/xhr-vary-header.html b/third_party/WebKit/LayoutTests/http/tests/cache/xhr-vary-header.html
index 5d183d9f19f7515519ec7705ab344db9659f3a23..16a79dbd71541001b885a624571bdd80e4627289 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cache/xhr-vary-header.html
+++ b/third_party/WebKit/LayoutTests/http/tests/cache/xhr-vary-header.html
@@ -12,7 +12,7 @@ var testStep = 1;
function testCrossOrigin()
{
var req = new XMLHttpRequest;
- req.open("get", "http://localhost:8000/cache/resources/xhr-vary-header-response.php");
+ req.open("GET", "http://localhost:8080/cache/resources/xhr-vary-header-response.php");
req.onload=function() { receivedResponse(req.responseText) }
req.send();
}
@@ -27,17 +27,17 @@ function receivedResponse(text)
window.responseText = text;
switch (testStep) {
case 1:
- shouldBe("responseText", "'Cross origin response'");
+ shouldBe("responseText", "'Origin header value is http://127.0.0.1:8000'");
testStep++;
testSameOrigin();
break;
case 2:
- shouldBe("responseText", "'Same origin response'");
+ shouldBe("responseText", "'Origin header value is http://localhost:8000'");
testStep++;
testCrossOrigin();
break;
case 3:
- shouldBe("responseText", "'Cross origin response'");
+ shouldBe("responseText", "'Origin header value is http://127.0.0.1:8000'");
finishJSTest();
testStep++;
break;

Powered by Google App Engine
This is Rietveld 408576698