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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchManager.cpp

Issue 1965013002: Implement headers attributes in ForeignFetchResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using instead of typedef Created 4 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
Index: third_party/WebKit/Source/modules/fetch/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index 464af08bc951b13eccdf5138e0b619695c4316c5..7f59a051fcd31e8065db0cf9aa30c25b6e27f9c0 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -331,9 +331,12 @@ void FetchManager::Loader::didReceiveResponse(unsigned long, const ResourceRespo
case FetchRequestData::BasicTainting:
taintedResponse = responseData->createBasicFilteredResponse();
break;
- case FetchRequestData::CORSTainting:
- taintedResponse = responseData->createCORSFilteredResponse();
+ case FetchRequestData::CORSTainting: {
+ HTTPHeaderSet headerNames;
+ extractCorsExposedHeaderNamesList(response, headerNames);
+ taintedResponse = responseData->createCORSFilteredResponse(headerNames);
break;
+ }
case FetchRequestData::OpaqueTainting:
taintedResponse = responseData->createOpaqueFilteredResponse();
break;

Powered by Google App Engine
This is Rietveld 408576698