⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277344 in webkit


Ignore:
Timestamp:
May 11, 2021, 5:05:49 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Remove xpc_connection_kill
https://bugs.webkit.org/show_bug.cgi?id=225602

Patch by Alex Christensen <achristensen@webkit.org> on 2021-05-11
Reviewed by Alexey Proskuryakov.

Source/WebKit:

  • UIProcess/Launcher/mac/ProcessLauncherMac.mm:

(WebKit::terminateWithReason):

Source/WTF:

  • wtf/PlatformHave.h:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r277315 r277344  
     12021-05-11  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove xpc_connection_kill
     4        https://bugs.webkit.org/show_bug.cgi?id=225602
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * wtf/PlatformHave.h:
     9
    1102021-05-10  Chris Dumez  <cdumez@apple.com>
    211
  • trunk/Source/WTF/wtf/PlatformHave.h

    r276447 r277344  
    963963#define HAVE_UIBLUREFFECT_STYLE_SYSTEM_MATERIAL 1
    964964#endif
     965
     966#if PLATFORM(COCOA) && !(PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 150000)
     967#define HAVE_SYSTEM_SANDBOXES_ALLOWING_TERMINATE_WITH_REASON 1
     968#endif
  • trunk/Source/WebKit/ChangeLog

    r277341 r277344  
     12021-05-11  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove xpc_connection_kill
     4        https://bugs.webkit.org/show_bug.cgi?id=225602
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
     9        (WebKit::terminateWithReason):
     10
    1112021-05-11  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebKit/UIProcess/Launcher/mac/ProcessLauncherMac.mm

    r275964 r277344  
    344344void terminateWithReason(xpc_connection_t connection, ReasonCode reasonCode, const char* reason)
    345345{
    346 #if PLATFORM(MACCATALYST) || PLATFORM(IOS)
    347     // FIXME: Remove this once rdar://76601307 and rdar://76652763 are fixed.
     346#if HAVE(SYSTEM_SANDBOXES_ALLOWING_TERMINATE_WITH_REASON)
     347    terminate_with_reason(xpc_connection_get_pid(connection), OS_REASON_WEBKIT, static_cast<uint64_t>(reasonCode), reason, OS_REASON_FLAG_NO_CRASH_REPORT);
     348#else
     349    // We are keeping this code on iOS 14.5 because rdar://76601307 and rdar://76652763 are not fixed there.
    348350    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    349351    xpc_connection_kill(connection, SIGKILL);
     
    351353    UNUSED_PARAM(reasonCode);
    352354    UNUSED_PARAM(reason);
    353 #else
    354     terminate_with_reason(xpc_connection_get_pid(connection), OS_REASON_WEBKIT, static_cast<uint64_t>(reasonCode), reason, OS_REASON_FLAG_NO_CRASH_REPORT);
    355355#endif
    356356}
Note: See TracChangeset for help on using the changeset viewer.