Index: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
index 43e63d05d337c229e7214782ab96727b8cbef18f..cdc89261d030c3a55fd08b37951465162658910b 100644 |
--- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
@@ -533,6 +533,7 @@ bool DocumentThreadableLoader::redirectReceived( |
// Allow same origin requests to continue after allowing clients to audit the |
// redirect. |
if (isAllowedRedirect(request.url())) { |
+ m_client->didReceiveRedirectTo(request.url()); |
if (m_client->isDocumentThreadableLoaderClient()) { |
return static_cast<DocumentThreadableLoaderClient*>(m_client) |
->willFollowRedirect(request, redirectResponse); |
@@ -586,6 +587,8 @@ bool DocumentThreadableLoader::redirectReceived( |
return false; |
} |
+ m_client->didReceiveRedirectTo(request.url()); |
+ |
// FIXME: consider combining this with CORS redirect handling performed by |
// CrossOriginAccessControl::handleRedirect(). |
clearResource(); |