Commit edef10c7 authored by weinig@apple.com's avatar weinig@apple.com
Browse files

cancelledError for WebKit2 on windows should use kCFErrorDomainCFNetwork...

cancelledError for WebKit2 on windows should use kCFErrorDomainCFNetwork instead of webKitErrorDomain
https://bugs.webkit.org/show_bug.cgi?id=48254

Reviewed by Dan Bernstein.

* WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
(WebKit::cancelledError): Use kCFErrorDomainCFNetwork instead of webKitErrorDomain and switch over
to using kCFURLErrorCancelled instead of a hard coded constant.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a7f58d7c
2010-10-25 Sam Weinig <sam@webkit.org>
Reviewed by Dan Bernstein.
cancelledError for WebKit2 on windows should use kCFErrorDomainCFNetwork instead of webKitErrorDomain
https://bugs.webkit.org/show_bug.cgi?id=48254
* WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
(WebKit::cancelledError): Use kCFErrorDomainCFNetwork instead of webKitErrorDomain and switch over
to using kCFURLErrorCancelled instead of a hard coded constant.
2010-10-25 Sam Weinig <sam@webkit.org>
 
Reviewed by Anders Carlsson.
......
......@@ -27,6 +27,7 @@
#include "WKError.h"
#include "WebError.h"
#include <CFNetwork/CFNetworkErrors.h>
#include <WebCore/ResourceRequest.h>
#include <WebCore/ResourceResponse.h>
......@@ -34,13 +35,9 @@ using namespace WebCore;
namespace WebKit {
enum {
WebURLErrorCancelled = -999,
};
ResourceError cancelledError(const ResourceRequest& request)
{
return ResourceError(WebError::webKitErrorDomain(), WebURLErrorCancelled, request.url().string(), String());
return ResourceError(kCFErrorDomainCFNetwork, kCFURLErrorCancelled, request.url().string(), String());
}
ResourceError blockedError(const ResourceRequest& request)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment