Commit 11f1567d authored by mkwst's avatar mkwst Committed by Commit bot

WebURLLoaderMock should set a request context for redirects.

BUG=417841

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

Cr-Commit-Position: refs/heads/master@{#297397}
parent 69354ff0
......@@ -58,6 +58,7 @@ blink::WebURLRequest WebURLLoaderMock::ServeRedirect(
const blink::WebURLResponse& redirectResponse) {
blink::WebURLRequest newRequest;
newRequest.initialize();
newRequest.setRequestContext(blink::WebURLRequest::RequestContextInternal);
GURL redirectURL(redirectResponse.httpHeaderField("Location"));
newRequest.setURL(redirectURL);
client_->willSendRequest(this, newRequest, redirectResponse);
......
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