[WK2][SOUP] WebContext::setIgnoreTLSErrors should send SetIgnoreTLSErrors to the...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Dec 2013 15:39:52 +0000 (15:39 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Dec 2013 15:39:52 +0000 (15:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125505

Patch by Kwang Yul Seo <skyul@company100.net> on 2013-12-10
Reviewed by Carlos Garcia Campos.

This is a follow-up patch for r160355.

* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::setIgnoreTLSErrors):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@160364 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp

index 80ae01ae666689a322480572651d638f1ca93fff..31f02ad999c7ababa534e067e19c7574e0715e6c 100644 (file)
@@ -1,3 +1,15 @@
+2013-12-10  Kwang Yul Seo  <skyul@company100.net>
+
+        [WK2][SOUP] WebContext::setIgnoreTLSErrors should send SetIgnoreTLSErrors to the network process when network process is enabled
+        https://bugs.webkit.org/show_bug.cgi?id=125505
+
+        Reviewed by Carlos Garcia Campos.
+
+        This is a follow-up patch for r160355.
+
+        * UIProcess/gtk/WebContextGtk.cpp:
+        (WebKit::WebContext::setIgnoreTLSErrors):
+
 2013-12-10  Martin Robinson  <mrobinson@igalia.com>
 
         Try to fix the EFL build
index 56d907c9f7cba3568353a2778f277af8a64d9afc..0aa09afd3d5a4e36c1f0375f7d49ec05bc8b9158 100644 (file)
 #include <wtf/gobject/GOwnPtr.h>
 #include <wtf/text/CString.h>
 
+#if ENABLE(NETWORK_PROCESS)
+#include "NetworkProcessMessages.h"
+#endif
+
 namespace WebKit {
 
 static void initInspectorServer()
@@ -140,6 +144,12 @@ String WebContext::platformDefaultCookieStorageDirectory() const
 void WebContext::setIgnoreTLSErrors(bool ignoreTLSErrors)
 {
     m_ignoreTLSErrors = ignoreTLSErrors;
+#if ENABLE(NETWORK_PROCESS)
+    if (usesNetworkProcess() && networkProcess()) {
+        networkProcess()->send(Messages::NetworkProcess::SetIgnoreTLSErrors(m_ignoreTLSErrors), 0);
+        return;
+    }
+#endif
     sendToAllProcesses(Messages::WebProcess::SetIgnoreTLSErrors(m_ignoreTLSErrors));
 }