From 11f1567dce41d3f15481fa2df0f6a334455e7adb Mon Sep 17 00:00:00 2001 From: mkwst <mkwst@chromium.org> Date: Tue, 30 Sep 2014 03:16:44 -0700 Subject: [PATCH] WebURLLoaderMock should set a request context for redirects. BUG=417841 Review URL: https://codereview.chromium.org/607383002 Cr-Commit-Position: refs/heads/master@{#297397} --- content/test/weburl_loader_mock.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/content/test/weburl_loader_mock.cc b/content/test/weburl_loader_mock.cc index 056564a839cf9..02047a3c893d2 100644 --- a/content/test/weburl_loader_mock.cc +++ b/content/test/weburl_loader_mock.cc @@ -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);