void ResourceLoader::didReceiveAuthenticationChallenge(const AuthenticationChallenge& challenge) { ASSERT(handle()->hasAuthenticationChallenge()); // Protect this in this delegate method since the additional processing can do // anything including possibly derefing this; one example of this is Radar 3266216. RefPtr<ResourceLoader> protector(this); if (m_options.allowCredentials == AllowStoredCredentials) { if (m_options.crossOriginCredentialPolicy == AskClientForCrossOriginCredentials || m_frame->document()->securityOrigin()->canRequest(originalRequest().url())) { // SRL: Event action for https request. ActionLogFormat(ActionLog::ENTER_SCOPE, "auth_recv:%s", m_request.url().lastPathComponent().ascii().data()); frameLoader()->notifier()->didReceiveAuthenticationChallenge(this, challenge); ActionLogScopeEnd(); return; } } // Only these platforms provide a way to continue without credentials. // If we can't continue with credentials, we need to cancel the load altogether. #if PLATFORM(MAC) || USE(CFNETWORK) || USE(CURL) handle()->receivedRequestToContinueWithoutCredential(challenge); ASSERT(!handle()->hasAuthenticationChallenge()); #else didFail(blockedError()); #endif }
void ResourceLoader::wasBlocked(ResourceHandle*) { if (!fastMallocSize(documentLoader()->applicationCacheHost())) CRASH(); if (!fastMallocSize(documentLoader()->frame())) CRASH(); didFail(blockedError()); }
void ResourceLoader::didReceiveAuthenticationChallenge(const AuthenticationChallenge& challenge) { ASSERT(!handle() || handle()->hasAuthenticationChallenge()); // Protect this in this delegate method since the additional processing can do // anything including possibly derefing this; one example of this is Radar 3266216. RefPtr<ResourceLoader> protector(this); if (m_options.allowCredentials == AllowStoredCredentials) { if (m_options.crossOriginCredentialPolicy == AskClientForCrossOriginCredentials || m_frame->document()->securityOrigin()->canRequest(originalRequest().url())) { frameLoader()->notifier()->didReceiveAuthenticationChallenge(this, challenge); return; } } // Only these platforms provide a way to continue without credentials. // If we can't continue with credentials, we need to cancel the load altogether. #if PLATFORM(MAC) || USE(CFNETWORK) || USE(CURL) || PLATFORM(GTK) || PLATFORM(EFL) challenge.authenticationClient()->receivedRequestToContinueWithoutCredential(challenge); ASSERT(!handle() || !handle()->hasAuthenticationChallenge()); #else didFail(blockedError()); #endif }
void ResourceLoader::didReceiveAuthenticationChallenge(const AuthenticationChallenge& challenge) { ASSERT(m_handle->hasAuthenticationChallenge()); // Protect this in this delegate method since the additional processing can do // anything including possibly derefing this; one example of this is Radar 3266216. Ref<ResourceLoader> protect(*this); if (m_options.allowCredentials() == AllowStoredCredentials) { if (isAllowedToAskUserForCredentials()) { frameLoader()->notifier().didReceiveAuthenticationChallenge(this, challenge); return; } } // Only these platforms provide a way to continue without credentials. // If we can't continue with credentials, we need to cancel the load altogether. #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(CURL) || PLATFORM(GTK) || PLATFORM(EFL) challenge.authenticationClient()->receivedRequestToContinueWithoutCredential(challenge); ASSERT(!m_handle || !m_handle->hasAuthenticationChallenge()); #else didFail(blockedError()); #endif }
void ResourceLoader::wasBlocked(ResourceHandle*) { didFail(blockedError()); }
void ResourceLoader::wasBlocked() { didFail(blockedError()); }