Commit 4b9b7a7f authored by Yutaka Hirano's avatar Yutaka Hirano Committed by Commit Bot

S13nServiceWorker: Fix fetch_request_context handling in navigation

ResourceRequest::fetch_request_context was not set in
NavigationURLLoaderNetworkService, which resulted in failure of
wpt/fetch/api/request/destination/fetch-destination-iframe.https.html.

Bug: 778721
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I595e1a877d3fc7c8dbbd720867fd344d3c88b2ac
Reviewed-on: https://chromium-review.googlesource.com/951670Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541427}
parent 83dc0829
...@@ -250,6 +250,8 @@ std::unique_ptr<network::ResourceRequest> CreateResourceRequest( ...@@ -250,6 +250,8 @@ std::unique_ptr<network::ResourceRequest> CreateResourceRequest(
new_request->fetch_credentials_mode = new_request->fetch_credentials_mode =
network::mojom::FetchCredentialsMode::kInclude; network::mojom::FetchCredentialsMode::kInclude;
new_request->fetch_redirect_mode = network::mojom::FetchRedirectMode::kManual; new_request->fetch_redirect_mode = network::mojom::FetchRedirectMode::kManual;
new_request->fetch_request_context_type =
request_info->begin_params->request_context_type;
return new_request; return new_request;
} }
......
...@@ -9,7 +9,6 @@ Bug(none) external/wpt/content-security-policy/inside-worker/dedicated-inheritan ...@@ -9,7 +9,6 @@ Bug(none) external/wpt/content-security-policy/inside-worker/dedicated-inheritan
Bug(none) external/wpt/content-security-policy/inside-worker/dedicated-script.html [ Failure Timeout ] Bug(none) external/wpt/content-security-policy/inside-worker/dedicated-script.html [ Failure Timeout ]
Bug(none) external/wpt/cookies/secure/set-from-wss.https.sub.html [ Failure ] Bug(none) external/wpt/cookies/secure/set-from-wss.https.sub.html [ Failure ]
Bug(none) external/wpt/css/css-fonts/font-display/font-display.html [ Failure Timeout ] Bug(none) external/wpt/css/css-fonts/font-display/font-display.html [ Failure Timeout ]
Bug(none) external/wpt/fetch/api/request/destination/fetch-destination-iframe.https.html [ Failure ]
Bug(none) external/wpt/html/browsers/offline/appcache/workers/appcache-worker.html [ Timeout ] Bug(none) external/wpt/html/browsers/offline/appcache/workers/appcache-worker.html [ Timeout ]
Bug(none) external/wpt/service-workers/service-worker/claim-shared-worker-fetch.https.html [ Failure ] Bug(none) external/wpt/service-workers/service-worker/claim-shared-worker-fetch.https.html [ Failure ]
Bug(none) external/wpt/service-workers/service-worker/clients-get-client-types.https.html [ Failure ] Bug(none) external/wpt/service-workers/service-worker/clients-get-client-types.https.html [ Failure ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment