Title: [162464] trunk/Source/WebCore
Revision
162464
Author
[email protected]
Date
2014-01-21 12:26:37 -0800 (Tue, 21 Jan 2014)

Log Message

Support SSL error handling in case of synchronous job.
https://bugs.webkit.org/show_bug.cgi?id=125301

Patch by Robert Sipka <[email protected]> on 2014-01-21
Reviewed by Brent Fulgham.

Set ssl error informations for the users.

* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::ResourceHandleManager::dispatchSynchronousJob):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (162463 => 162464)


--- trunk/Source/WebCore/ChangeLog	2014-01-21 20:25:50 UTC (rev 162463)
+++ trunk/Source/WebCore/ChangeLog	2014-01-21 20:26:37 UTC (rev 162464)
@@ -1,3 +1,15 @@
+2014-01-21  Robert Sipka  <[email protected]>
+
+        Support SSL error handling in case of synchronous job.
+        https://bugs.webkit.org/show_bug.cgi?id=125301
+
+        Reviewed by Brent Fulgham.
+
+        Set ssl error informations for the users.
+
+        * platform/network/curl/ResourceHandleManager.cpp:
+        (WebCore::ResourceHandleManager::dispatchSynchronousJob):
+
 2014-01-21  Simon Fraser  <[email protected]>
 
         Export systemTotalMemory() and systemMemoryLevel() for MobileSafari

Modified: trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp (162463 => 162464)


--- trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp	2014-01-21 20:25:50 UTC (rev 162463)
+++ trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp	2014-01-21 20:26:37 UTC (rev 162464)
@@ -843,8 +843,9 @@
     // curl_easy_perform blocks until the transfert is finished.
     CURLcode ret =  curl_easy_perform(handle->m_handle);
 
-    if (ret != 0) {
+    if (ret != CURLE_OK) {
         ResourceError error(String(handle->m_url), ret, String(handle->m_url), String(curl_easy_strerror(ret)));
+        error.setSSLErrors(handle->m_sslErrors);
         handle->client()->didFail(job, error);
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to