Commit 71dee2bd authored by adachan@apple.com's avatar adachan@apple.com

WebKitLibraries:

        Update WebKitSystemInterface with new method that maps CFNetwork error code to localized description.
        
        Reviewed by Darin Adler.

        * win/include/WebKitSystemInterface/WebKitSystemInterface.h:
        * win/lib/WebKitSystemInterface.lib:
        * win/lib/WebKitSystemInterface_debug.lib:

WebKit/win:
        <rdar://problem/5115298> Don't get error msg when download is interrupted and cannot resume due to server unavailability
        If we fail to get an error description back from CFNetwork, try to get the localized description
        based on the error code.

        Reviewed by Darin Adler.

        * WebError.cpp:
        (WebError::localizedDescription):



git-svn-id: svn://svn.chromium.org/blink/trunk@42767 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1f962f15
2009-04-22 Ada Chan <adachan@apple.com>
<rdar://problem/5115298> Don't get error msg when download is interrupted and cannot resume due to server unavailability
If we fail to get an error description back from CFNetwork, try to get the localized description
based on the error code.
Reviewed by Darin Adler.
* WebError.cpp:
(WebError::localizedDescription):
2009-04-21 Jon Honeycutt <jhoneycutt@apple.com>
Allow the UI delegate to control cursor-setting.
......
......@@ -136,6 +136,12 @@ HRESULT STDMETHODCALLTYPE WebError::localizedDescription(
return E_POINTER;
*result = BString(m_error.localizedDescription()).release();
if (!*result) {
if (int code = m_error.errorCode())
*result = BString(wkCFNetworkErrorGetLocalizedDescription(code)).release();
}
return S_OK;
}
......
2009-04-22 Ada Chan <adachan@apple.com>
Update WebKitSystemInterface with new method that maps CFNetwork error code to localized description.
Reviewed by Darin Adler.
* win/include/WebKitSystemInterface/WebKitSystemInterface.h:
* win/lib/WebKitSystemInterface.lib:
* win/lib/WebKitSystemInterface_debug.lib:
2009-04-20 Steve Falkenburg <sfalken@apple.com>
Separate JavaScriptCore.dll from WebKit.dll.
......
......@@ -76,4 +76,6 @@ void wkCFURLRequestSetHTTPRequestBodyParts(CFMutableURLRequestRef, CFArrayRef bo
unsigned wkInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnectionCount);
CFStringRef wkCFNetworkErrorGetLocalizedDescription(CFIndex errorCode);
#endif // WebKitSystemInterface_h
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