Changeset 232937 in webkit


Ignore:
Timestamp:
Jun 18, 2018 11:54:49 AM (6 years ago)
Author:
jiewen_tan@apple.com
Message:

Add a graceful exit for AuthenticationManager::initializeConnection
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:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r232932 r232937  
     12018-06-18  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Add a graceful exit for AuthenticationManager::initializeConnection
     4        https://bugs.webkit.org/show_bug.cgi?id=186632
     5        <rdar://problem/41041033>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        * wtf/spi/darwin/XPCSPI.h:
     10
    1112018-06-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    212
  • trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h

    r227212 r232937  
    7373#define XPC_TYPE_ARRAY (&_xpc_type_array)
    7474#define XPC_TYPE_BOOL (&_xpc_type_bool)
     75#define XPC_TYPE_CONNECTION (&_xpc_type_connection)
    7576#define XPC_TYPE_DICTIONARY (&_xpc_type_dictionary)
    7677#define XPC_TYPE_ERROR (&_xpc_type_error)
  • trunk/Source/WebKit/ChangeLog

    r232933 r232937  
     12018-06-18  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Add a graceful exit for AuthenticationManager::initializeConnection
     4        https://bugs.webkit.org/show_bug.cgi?id=186632
     5        <rdar://problem/41041033>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Add a graceful exit for AuthenticationManager::initializeConnection when the provided IPC connection
     10        is null or the underlying xpc connection is null.
     11
     12        * Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm:
     13        (WebKit::AuthenticationManager::initializeConnection):
     14
    1152018-06-18  Youenn Fablet  <youenn@apple.com>
    216
  • trunk/Source/WebKit/Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm

    r232613 r232937  
    4040{
    4141    ASSERT(isMainThread());
     42
     43    if (!connection || xpc_get_type(connection->xpcConnection()) != XPC_TYPE_CONNECTION) {
     44        ASSERT_NOT_REACHED();
     45        return;
     46    }
    4247
    4348    auto weakThis = makeWeakPtr(*this);
Note: See TracChangeset for help on using the changeset viewer.