Commit 8ff9db81 authored by mkwst's avatar mkwst Committed by Commit bot

Pass request context and frame type down to Blink for redirect responses.

We're currently not passing the request context or frame type correctly
when performing redirects, which breaks our mixed content checking
functionality for those requests. This is the Chromium side of a fix.
Blink side to follow.

BUG=417841

Review URL: https://codereview.chromium.org/605103003

Cr-Commit-Position: refs/heads/master@{#297104}
parent d42f5112
...@@ -486,6 +486,8 @@ bool WebURLLoaderImpl::Context::OnReceivedRedirect( ...@@ -486,6 +486,8 @@ bool WebURLLoaderImpl::Context::OnReceivedRedirect(
new_request.setFirstPartyForCookies( new_request.setFirstPartyForCookies(
redirect_info.new_first_party_for_cookies); redirect_info.new_first_party_for_cookies);
new_request.setDownloadToFile(request_.downloadToFile()); new_request.setDownloadToFile(request_.downloadToFile());
new_request.setRequestContext(request_.requestContext());
new_request.setFrameType(request_.frameType());
new_request.setHTTPReferrer(WebString::fromUTF8(redirect_info.new_referrer), new_request.setHTTPReferrer(WebString::fromUTF8(redirect_info.new_referrer),
referrer_policy_); referrer_policy_);
......
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