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 b027093afb3d66e288186082038a87ae11750e35..4911741800ca5864183ef26847fb6e34255af713 100644 |
--- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
@@ -536,6 +536,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); |
@@ -597,6 +598,8 @@ bool DocumentThreadableLoader::redirectReceived( |
return false; |
} |
+ m_client->didReceiveRedirectTo(request.url()); |
+ |
// FIXME: consider combining this with CORS redirect handling performed by |
// CrossOriginAccessControl::handleRedirect(). |
clearResource(); |