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

Changeset 286622 in webkit


Ignore:
Timestamp:
Dec 7, 2021, 2:17:49 PM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r286563. rdar://problem/86175400

REGRESSION (r286527): Three API tests crashing under WebKit::ProcessLauncher::launchProcess()
https://bugs.webkit.org/show_bug.cgi?id=233882
<rdar://problem/86111726>

Reviewed by Brent Fulgham.

Correct the eventHandler to capture the process name, rather than using a raw pointer to the character string.

  • UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm: (WebKit::ProcessLauncher::launchProcess):

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

Location:
branches/safari-613.1.11-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613.1.11-branch/Source/WebKit/ChangeLog

    r286621 r286622  
     12021-12-07  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r286563. rdar://problem/86175400
     4
     5    REGRESSION (r286527): Three API tests crashing under WebKit::ProcessLauncher::launchProcess()
     6    https://bugs.webkit.org/show_bug.cgi?id=233882
     7    <rdar://problem/86111726>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    Correct the eventHandler to capture the process name, rather than using a raw pointer to the character string.
     12   
     13    * UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm:
     14    (WebKit::ProcessLauncher::launchProcess):
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2021-12-06  Brent Fulgham  <bfulgham@apple.com>
     20
     21            REGRESSION (r286527): Three API tests crashing under WebKit::ProcessLauncher::launchProcess()
     22            https://bugs.webkit.org/show_bug.cgi?id=233882
     23            <rdar://problem/86111726>
     24
     25            Reviewed by Brent Fulgham.
     26
     27            Correct the eventHandler to capture the process name, rather than using a raw pointer to the character string.
     28
     29            * UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm:
     30            (WebKit::ProcessLauncher::launchProcess):
     31
    1322021-12-07  Russell Epstein  <repstein@apple.com>
    233
  • branches/safari-613.1.11-branch/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm

    r286527 r286622  
    240240    xpc_dictionary_set_value(bootstrapMessage.get(), "extra-initialization-data", extraInitializationData.get());
    241241
    242     auto errorHandlerImpl = [weakProcessLauncher = WeakPtr { *this }, listeningPort, name] (xpc_object_t event) {
     242    auto errorHandlerImpl = [weakProcessLauncher = WeakPtr { *this }, listeningPort, logName = String(name)] (xpc_object_t event) {
    243243        ASSERT(!event || xpc_get_type(event) == XPC_TYPE_ERROR);
    244244
     
    251251
    252252#if ERROR_DISABLED
    253         UNUSED_PARAM(name);
    254 #endif
    255 
    256         LOG_ERROR("Error while launching %s: %s", name, xpc_dictionary_get_string(event, XPC_ERROR_KEY_DESCRIPTION));
     253        UNUSED_PARAM(logName);
     254#endif
     255
     256        if (event)
     257            LOG_ERROR("Error while launching %s: %s", logName.utf8().data(), xpc_dictionary_get_string(event, XPC_ERROR_KEY_DESCRIPTION));
     258        else
     259            LOG_ERROR("Error while launching %s: No xpc_object_t event available.", logName.utf8().data());
    257260
    258261#if ASSERT_ENABLED
Note: See TracChangeset for help on using the changeset viewer.