Index: trunk/Source/core/fetch/CrossOriginAccessControl.cpp |
=================================================================== |
--- trunk/Source/core/fetch/CrossOriginAccessControl.cpp (revision 169503) |
+++ trunk/Source/core/fetch/CrossOriginAccessControl.cpp (working copy) |
@@ -242,7 +242,7 @@ |
bool allowRedirect = isLegalRedirectLocation(requestURL, errorDescription); |
if (allowRedirect) { |
// Step 5: perform resource sharing access check. |
- StoredCredentials withCredentials = resource->lastResourceRequest().allowStoredCredentials() ? AllowStoredCredentials : DoNotAllowStoredCredentials; |
+ StoredCredentials withCredentials = resource->resourceRequest().allowStoredCredentials() ? AllowStoredCredentials : DoNotAllowStoredCredentials; |
allowRedirect = passesAccessControlCheck(redirectResponse, withCredentials, securityOrigin, errorDescription); |
if (allowRedirect) { |
RefPtr<SecurityOrigin> originalOrigin = SecurityOrigin::create(originalURL); |