void AssociatedURLLoader::ClientAdapter::didFail(const ResourceError& error) { if (!m_client) return; m_didFail = true; m_error = WebURLError(error); if (m_enableErrorNotifications) notifyError(&m_errorTimer); }
WebURLError& WebURLError::operator=(const ResourceError& error) { if (error.isNull()) *this = WebURLError(); else { domain = error.domain(); reason = error.errorCode(); unreachableURL = KURL(ParsedURLString, error.failingURL()); } return *this; }
WebURLError& WebURLError::operator=(const ResourceError& error) { if (error.isNull()) { *this = WebURLError(); } else { domain = error.domain(); reason = error.errorCode(); unreachableURL = KURL(ParsedURLString, error.failingURL()); isCancellation = error.isCancellation(); staleCopyInCache = error.staleCopyInCache(); localizedDescription = error.localizedDescription(); wasIgnoredByHandler = error.wasIgnoredByHandler(); } return *this; }
WebURLError& WebURLError::operator=(const ResourceError& error) { if (error.isNull()) { *this = WebURLError(); #if defined(__LB_SHELL__) // Cancellation flag can be valid when error is null. // TODO: This is a quick fix and someone may need // to put in a better fix later. isCancellation = error.isCancellation(); #endif } else { domain = error.domain(); reason = error.errorCode(); unreachableURL = KURL(ParsedURLString, error.failingURL()); isCancellation = error.isCancellation(); } return *this; }
WebURLError TestingPlatformSupport::cancelledError(const WebURL& url) const { return m_oldPlatform ? m_oldPlatform->cancelledError(url) : WebURLError(); }