https://bugs.webkit.org/show_bug.cgi?id=186632
<rdar://problem/
41041033>
Reviewed by Brent Fulgham.
Source/WebKit:
Add a graceful exit for AuthenticationManager::initializeConnection when the provided IPC connection
is null or the underlying xpc connection is null.
* Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm:
(WebKit::AuthenticationManager::initializeConnection):
Source/WTF:
* wtf/spi/darwin/XPCSPI.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232937
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2018-06-18 Jiewen Tan <jiewen_tan@apple.com>
+
+ Add a graceful exit for AuthenticationManager::initializeConnection
+ https://bugs.webkit.org/show_bug.cgi?id=186632
+ <rdar://problem/41041033>
+
+ Reviewed by Brent Fulgham.
+
+ * wtf/spi/darwin/XPCSPI.h:
+
2018-06-18 Carlos Alberto Lopez Perez <clopez@igalia.com>
[WTF] Remove workarounds needed to support libstdc++-4
#define XPC_ERROR_TERMINATION_IMMINENT XPC_GLOBAL_OBJECT(_xpc_error_termination_imminent)
#define XPC_TYPE_ARRAY (&_xpc_type_array)
#define XPC_TYPE_BOOL (&_xpc_type_bool)
+#define XPC_TYPE_CONNECTION (&_xpc_type_connection)
#define XPC_TYPE_DICTIONARY (&_xpc_type_dictionary)
#define XPC_TYPE_ERROR (&_xpc_type_error)
#define XPC_TYPE_STRING (&_xpc_type_string)
+2018-06-18 Jiewen Tan <jiewen_tan@apple.com>
+
+ Add a graceful exit for AuthenticationManager::initializeConnection
+ https://bugs.webkit.org/show_bug.cgi?id=186632
+ <rdar://problem/41041033>
+
+ Reviewed by Brent Fulgham.
+
+ Add a graceful exit for AuthenticationManager::initializeConnection when the provided IPC connection
+ is null or the underlying xpc connection is null.
+
+ * Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm:
+ (WebKit::AuthenticationManager::initializeConnection):
+
2018-06-18 Youenn Fablet <youenn@apple.com>
Validate Cross-Origin-Resource-Policy for resources cached in the MemoryCache
{
ASSERT(isMainThread());
+ if (!connection || xpc_get_type(connection->xpcConnection()) != XPC_TYPE_CONNECTION) {
+ ASSERT_NOT_REACHED();
+ return;
+ }
+
auto weakThis = makeWeakPtr(*this);
// The following xpc event handler overwrites the boostrap event handler and is only used
// to capture client certificate credential.