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: https://svn.webkit.org/repository/webkit/trunk@42767
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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.
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.
unsigned wkInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnectionCount);
+CFStringRef wkCFNetworkErrorGetLocalizedDescription(CFIndex errorCode);
+
#endif // WebKitSystemInterface_h