Title: [249940] trunk/Source
- Revision
- 249940
- Author
- [email protected]
- Date
- 2019-09-16 22:28:46 -0700 (Mon, 16 Sep 2019)
Log Message
[WinCairo][curl] Don't compile unused CertificateCFWin.cpp
https://bugs.webkit.org/show_bug.cgi?id=201860
Reviewed by Alex Christensen.
Source/WebCore:
Curl port is using ResourceHandle::setClientCertificateInfo
instead of ResourceHandle::setClientCertificate.
* PlatformWin.cmake: Added CertificateCFWin.cpp to WebCore_SOURCES only if USE_CFURLCONNECTION.
* platform/network/ResourceHandle.h: Removed an unused method setClientCertificate.
* platform/network/curl/ResourceHandleCurl.cpp:
(WebCore::ResourceHandle::setClientCertificate): Deleted.
Source/WebKitLegacy/win:
* WebMutableURLRequest.cpp: Include <WebCore/CertificateCFWin.h> only if USE(CFURLCONNECTION).
(WebMutableURLRequest::setClientCertificate): Don't use PCCERT_CONTEXT for curl port which is defined in WinCrypt.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (249939 => 249940)
--- trunk/Source/WebCore/ChangeLog 2019-09-17 03:48:49 UTC (rev 249939)
+++ trunk/Source/WebCore/ChangeLog 2019-09-17 05:28:46 UTC (rev 249940)
@@ -1,5 +1,20 @@
2019-09-16 Fujii Hironori <[email protected]>
+ [WinCairo][curl] Don't compile unused CertificateCFWin.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=201860
+
+ Reviewed by Alex Christensen.
+
+ Curl port is using ResourceHandle::setClientCertificateInfo
+ instead of ResourceHandle::setClientCertificate.
+
+ * PlatformWin.cmake: Added CertificateCFWin.cpp to WebCore_SOURCES only if USE_CFURLCONNECTION.
+ * platform/network/ResourceHandle.h: Removed an unused method setClientCertificate.
+ * platform/network/curl/ResourceHandleCurl.cpp:
+ (WebCore::ResourceHandle::setClientCertificate): Deleted.
+
+2019-09-16 Fujii Hironori <[email protected]>
+
[AppleWin] Assertion failure in defaultSupportedImageTypes in UTIRegistry.cpp
https://bugs.webkit.org/show_bug.cgi?id=198286
Modified: trunk/Source/WebCore/PlatformWin.cmake (249939 => 249940)
--- trunk/Source/WebCore/PlatformWin.cmake 2019-09-17 03:48:49 UTC (rev 249939)
+++ trunk/Source/WebCore/PlatformWin.cmake 2019-09-17 05:28:46 UTC (rev 249940)
@@ -154,7 +154,6 @@
if (USE_CF)
list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/platform/cf"
- "${WEBCORE_DIR}/platform/cf/win"
)
list(APPEND WebCore_SOURCES
@@ -164,15 +163,11 @@
platform/cf/SharedBufferCF.cpp
- platform/cf/win/CertificateCFWin.cpp
-
platform/text/cf/HyphenationCF.cpp
)
list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
loader/archive/cf/LegacyWebArchive.h
-
- platform/cf/win/CertificateCFWin.h
)
list(APPEND WebCore_LIBRARIES ${COREFOUNDATION_LIBRARY})
@@ -183,6 +178,18 @@
)
endif ()
+if (USE_CFURLCONNECTION)
+ list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
+ ${WEBCORE_DIR}/platform/cf/win
+ )
+ list(APPEND WebCore_SOURCES
+ platform/cf/win/CertificateCFWin.cpp
+ )
+ list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
+ platform/cf/win/CertificateCFWin.h
+ )
+endif ()
+
if (USE_CF AND NOT WTF_PLATFORM_WIN_CAIRO)
list(APPEND WebCore_SOURCES
platform/cf/KeyedDecoderCF.cpp
Modified: trunk/Source/WebCore/platform/network/ResourceHandle.h (249939 => 249940)
--- trunk/Source/WebCore/platform/network/ResourceHandle.h 2019-09-17 03:48:49 UTC (rev 249939)
+++ trunk/Source/WebCore/platform/network/ResourceHandle.h 2019-09-17 05:28:46 UTC (rev 249940)
@@ -155,10 +155,6 @@
static void setClientCertificateInfo(const String&, const String&, const String&);
#endif
-#if OS(WINDOWS) && USE(CURL) && USE(CF)
- static void setClientCertificate(const String& host, CFDataRef);
-#endif
-
bool shouldContentSniff() const;
static bool shouldContentSniffURL(const URL&);
Modified: trunk/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp (249939 => 249940)
--- trunk/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp 2019-09-17 03:48:49 UTC (rev 249939)
+++ trunk/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp 2019-09-17 05:28:46 UTC (rev 249940)
@@ -189,14 +189,6 @@
#endif
-#if OS(WINDOWS) && USE(CF)
-
-void ResourceHandle::setClientCertificate(const String&, CFDataRef)
-{
-}
-
-#endif
-
void ResourceHandle::platformSetDefersLoading(bool defers)
{
ASSERT(isMainThread());
Modified: trunk/Source/WebKitLegacy/win/ChangeLog (249939 => 249940)
--- trunk/Source/WebKitLegacy/win/ChangeLog 2019-09-17 03:48:49 UTC (rev 249939)
+++ trunk/Source/WebKitLegacy/win/ChangeLog 2019-09-17 05:28:46 UTC (rev 249940)
@@ -1,3 +1,13 @@
+2019-09-16 Fujii Hironori <[email protected]>
+
+ [WinCairo][curl] Don't compile unused CertificateCFWin.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=201860
+
+ Reviewed by Alex Christensen.
+
+ * WebMutableURLRequest.cpp: Include <WebCore/CertificateCFWin.h> only if USE(CFURLCONNECTION).
+ (WebMutableURLRequest::setClientCertificate): Don't use PCCERT_CONTEXT for curl port which is defined in WinCrypt.
+
2019-09-13 Fujii Hironori <[email protected]>
[WinCairo][WK1] Accelerated Compositing can't be disabled by using WebPreferences::setAcceleratedCompositingEnabled
Modified: trunk/Source/WebKitLegacy/win/WebMutableURLRequest.cpp (249939 => 249940)
--- trunk/Source/WebKitLegacy/win/WebMutableURLRequest.cpp 2019-09-17 03:48:49 UTC (rev 249939)
+++ trunk/Source/WebKitLegacy/win/WebMutableURLRequest.cpp 2019-09-17 05:28:46 UTC (rev 249940)
@@ -36,12 +36,9 @@
#include <wtf/text/CString.h>
#include <wtf/RetainPtr.h>
-#if USE(CF)
-#include <WebCore/CertificateCFWin.h>
-#endif
-
#if USE(CFURLCONNECTION)
#include <CFNetwork/CFURLRequestPriv.h>
+#include <WebCore/CertificateCFWin.h>
#endif
using namespace WebCore;
@@ -364,8 +361,8 @@
if (!cert)
return E_POINTER;
+#if USE(CFURLCONNECTION)
PCCERT_CONTEXT certContext = reinterpret_cast<PCCERT_CONTEXT>(cert);
-#if USE(CF)
RetainPtr<CFDataRef> certData = WebCore::copyCertificateToData(certContext);
ResourceHandle::setClientCertificate(m_request.url().host().toString(), certData.get());
return S_OK;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes