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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/redirect.js

Issue 2471533005: Preserve custom headers when following cross-origin redirects. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/redirect.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/redirect.js b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/redirect.js
index 7f33e95b817d440bddb5505df85ce0ef1982c2ce..9d72f303bfb4b5db6cb71169f18f8ef47be63c51 100644
--- a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/redirect.js
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/redirect.js
@@ -133,6 +133,27 @@ var TEST_TARGETS = [
// [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors],
// [methodIsPOST]],
+ // Custom header
+ [REDIRECT_URL +
+ encodeURIComponent(
+ OTHER_BASE_URL +
+ 'ACAOrigin=*&ACAHeaders=x-serviceworker-test') +
+ '&mode=cors&credentials=same-origin&method=GET&headers=CUSTOM',
+ [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors],
+ [methodIsGET, hasCustomHeader, authCheckNone]],
+ [REDIRECT_URL +
+ encodeURIComponent(
+ OTHER_BASE_URL +
+ 'ACAOrigin=*') +
+ '&mode=cors&credentials=same-origin&method=GET&headers=CUSTOM',
+ [fetchRejected]],
+ [REDIRECT_URL +
+ encodeURIComponent(
+ OTHER_BASE_URL +
+ 'ACAHeaders=x-serviceworker-test') +
+ '&mode=cors&credentials=same-origin&method=GET&headers=CUSTOM',
+ [fetchRejected]],
+
// Server header
[REDIRECT_URL +
encodeURIComponent(
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698