Changeset 205081 in webkit
- Timestamp:
- Aug 27, 2016 11:43:32 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r205079 r205081 1 2016-08-27 Youenn Fablet <youenn@apple.com> 2 3 [Fetch API] opaqueredirect responses should have their URL set to the original URL 4 https://bugs.webkit.org/show_bug.cgi?id=161194 5 6 Reviewed by Sam Weinig. 7 8 * web-platform-tests/fetch/api/redirect/redirect-mode.html: 9 * web-platform-tests/fetch/api/redirect/redirect-mode.js: 10 (redirectMode): Updating test to ease the computation of the absolute URL. 11 1 12 2016-08-27 Andreas Kling <akling@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-mode.html
r200195 r205081 11 11 </head> 12 12 <body> 13 <script src="../resources/ utils.js"></script>13 <script src="../resources/get-host-info.sub.js"></script> 14 14 <script src="redirect-mode.js"></script> 15 15 </body> -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-mode.js
r200195 r205081 1 1 if (this.document === undefined) { 2 2 importScripts("/resources/testharness.js"); 3 importScripts("../resources/ utils.js");3 importScripts("../resources/get-host-info.sub.js") 4 4 } 5 5 … … 19 19 assert_equals(resp.type, "opaqueredirect", "Response's type is opaqueredirect"); 20 20 assert_equals(resp.statusText, "", "Response's statusText is \"\""); 21 assert_equals(resp.url, url + urlParameters, "Response URL should be the original one"); 21 22 }); 22 23 if (redirectMode === "follow") … … 29 30 } 30 31 31 var redirUrl = RESOURCES_DIR + "redirect.py";32 var redirUrl = get_host_info().HTTP_ORIGIN + "/fetch/api/resources/redirect.py"; 32 33 var locationUrl = "top.txt"; 33 34 -
trunk/Source/WebCore/ChangeLog
r205079 r205081 1 2016-08-27 Youenn Fablet <youenn@apple.com> 2 3 [Fetch API] opaqueredirect responses should have their URL set to the original URL 4 https://bugs.webkit.org/show_bug.cgi?id=161194 5 6 Reviewed by Sam Weinig. 7 8 Covered by updated tests. 9 10 * loader/DocumentThreadableLoader.cpp: 11 (WebCore::DocumentThreadableLoader::didReceiveResponse): 12 * loader/SubresourceLoader.cpp: Removing isNull ASSERT since we now set the response URL. 13 (WebCore::SubresourceLoader::willSendRequestInternal): Setting opaqueredirect response URL to the original URL. 14 1 15 2016-08-27 Andreas Kling <akling@apple.com> 2 16 -
trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp
r204795 r205081 285 285 m_client->didReceiveResponse(identifier, ResourceResponse::filterResponse(response, tainting)); 286 286 else { 287 ASSERT(response. isNull() && response.type() == ResourceResponse::Type::Opaqueredirect);287 ASSERT(response.type() == ResourceResponse::Type::Opaqueredirect); 288 288 m_client->didReceiveResponse(identifier, response); 289 289 } -
trunk/Source/WebCore/loader/SubresourceLoader.cpp
r205062 r205081 183 183 184 184 ResourceResponse opaqueRedirectedResponse; 185 opaqueRedirectedResponse.setURL(redirectResponse.url()); 185 186 opaqueRedirectedResponse.setType(ResourceResponse::Type::Opaqueredirect); 186 187 m_resource->responseReceived(opaqueRedirectedResponse);
Note: See TracChangeset
for help on using the changeset viewer.