diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/loader/fetch/resource_error.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/loader/fetch/resource_error.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/loader/fetch/resource_error.cc b/chromium/third_party/blink/renderer/platform/loader/fetch/resource_error.cc index 788f95b599f..1670ba04db8 100644 --- a/chromium/third_party/blink/renderer/platform/loader/fetch/resource_error.cc +++ b/chromium/third_party/blink/renderer/platform/loader/fetch/resource_error.cc @@ -87,11 +87,16 @@ ResourceError::ResourceError( base::Optional<network::CORSErrorStatus> cors_error_status) : error_code_(error_code), failing_url_(url), + is_access_check_(cors_error_status.has_value()), cors_error_status_(cors_error_status) { DCHECK_NE(error_code_, 0); InitializeDescription(); } +ResourceError::ResourceError(const KURL& url, + const network::CORSErrorStatus& cors_error_status) + : ResourceError(net::ERR_FAILED, url, cors_error_status) {} + ResourceError::ResourceError(const WebURLError& error) : error_code_(error.reason()), extended_error_code_(error.extended_reason()), |