Changeset 286622 in webkit
- Timestamp:
- Dec 7, 2021, 2:17:49 PM (5 years ago)
- Location:
- branches/safari-613.1.11-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-613.1.11-branch/Source/WebKit/ChangeLog
r286621 r286622 1 2021-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 1 32 2021-12-07 Russell Epstein <repstein@apple.com> 2 33 -
branches/safari-613.1.11-branch/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm
r286527 r286622 240 240 xpc_dictionary_set_value(bootstrapMessage.get(), "extra-initialization-data", extraInitializationData.get()); 241 241 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) { 243 243 ASSERT(!event || xpc_get_type(event) == XPC_TYPE_ERROR); 244 244 … … 251 251 252 252 #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()); 257 260 258 261 #if ASSERT_ENABLED
Note:
See TracChangeset
for help on using the changeset viewer.