diff options
Diffstat (limited to 'WebCore/loader/SubresourceLoader.cpp')
-rw-r--r-- | WebCore/loader/SubresourceLoader.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/loader/SubresourceLoader.cpp b/WebCore/loader/SubresourceLoader.cpp index 7aef353..1e22fb1 100644 --- a/WebCore/loader/SubresourceLoader.cpp +++ b/WebCore/loader/SubresourceLoader.cpp @@ -248,14 +248,20 @@ void SubresourceLoader::didReceiveAuthenticationChallenge(const AuthenticationCh { RefPtr<SubresourceLoader> protect(this); + ASSERT(handle()->hasAuthenticationChallenge()); + if (m_client) m_client->didReceiveAuthenticationChallenge(this, challenge); // The SubResourceLoaderClient may have cancelled this ResourceLoader in response to the challenge. - // If that's the case, don't call didReceiveAuthenticationChallenge + // If that's the case, don't call didReceiveAuthenticationChallenge. if (reachedTerminalState()) return; - + + // It may have also handled authentication on its own. + if (!handle()->hasAuthenticationChallenge()) + return; + ResourceLoader::didReceiveAuthenticationChallenge(challenge); } |