RESOLVED FIXED 205564
Provide pid to crashing service worker process and GPU process
https://bugs.webkit.org/show_bug.cgi?id=205564
Summary Provide pid to crashing service worker process and GPU process
youenn fablet
Reported 2019-12-23 12:01:28 PST
Provide pid to crashing service worker process and GPU process
Attachments
Patch (11.99 KB, patch)
2019-12-23 12:20 PST, youenn fablet
no flags
youenn fablet
Comment 1 2019-12-23 12:20:35 PST
Darin Adler
Comment 2 2019-12-26 20:41:37 PST
Comment on attachment 386348 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=386348&action=review > Source/WebKit/ChangeLog:8 > + No change of behavior, we provide pids to the WKContext callbacks. Why are we doing this to the C API rather than the Objective-C/Swift API?
youenn fablet
Comment 3 2019-12-27 01:24:03 PST
(In reply to Darin Adler from comment #2) > Comment on attachment 386348 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=386348&action=review > > > Source/WebKit/ChangeLog:8 > > + No change of behavior, we provide pids to the WKContext callbacks. > > Why are we doing this to the C API rather than the Objective-C/Swift API? We could do both but the only use case is to allow better WebKitTestRunner error reporting and the API in use is the cross platform C API.
Alex Christensen
Comment 4 2020-01-02 10:57:04 PST
Comment on attachment 386348 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=386348&action=review > Source/WebKit/UIProcess/API/C/WKContext.h:60 > typedef void (*WKContextChildProcessDidCrashCallback)(WKContextRef context, const void *clientInfo); > typedef WKContextChildProcessDidCrashCallback WKContextNetworkProcessDidCrashCallback; Are these still needed. > Source/WebKit/UIProcess/API/C/WKContext.h:116 > - WKContextChildProcessDidCrashCallback serviceWorkerProcessDidCrash; > - WKContextChildProcessDidCrashCallback gpuProcessDidCrash; > + WKContextChildProcessWithPIDDidCrashCallback serviceWorkerProcessDidCrash; > + WKContextChildProcessWithPIDDidCrashCallback gpuProcessDidCrash; This is not a binary-compatible change. Do we have any clients using these except WebKitTestRunner? If so, we will need to add WKContextClientV4
youenn fablet
Comment 5 2020-01-03 01:39:00 PST
Comment on attachment 386348 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=386348&action=review >> Source/WebKit/UIProcess/API/C/WKContext.h:60 >> typedef WKContextChildProcessDidCrashCallback WKContextNetworkProcessDidCrashCallback; > > Are these still needed. Yes, WKContextNetworkProcessDidCrashCallback is still in use. >> Source/WebKit/UIProcess/API/C/WKContext.h:116 >> + WKContextChildProcessWithPIDDidCrashCallback gpuProcessDidCrash; > > This is not a binary-compatible change. Do we have any clients using these except WebKitTestRunner? If so, we will need to add WKContextClientV4 serviceWorkerProcessDidCrash and gpuProcessDidCrash have been recently added mid December 2019 and at that time, the version was incremented.
WebKit Commit Bot
Comment 6 2020-01-03 10:05:02 PST
Comment on attachment 386348 [details] Patch Clearing flags on attachment: 386348 Committed r254006: <https://trac.webkit.org/changeset/254006>
WebKit Commit Bot
Comment 7 2020-01-03 10:05:04 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2020-01-03 10:06:20 PST
Alex Christensen
Comment 9 2020-01-03 11:22:33 PST
Comment on attachment 386348 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=386348&action=review > Source/WebKit/UIProcess/API/C/WKContext.h:62 > +using WKContextChildProcessWithPIDDidCrashCallback = void (*)(WKContextRef, WKProcessID, const void *clientInfo); As pointed out by Keith Rollin, this line needs to be as follows because this is a C API: typedef void (*WKContextChildProcessWithPIDDidCrashCallback)(WKContextRef context, WKProcessID processID, const void *clientInfo);
Dean Jackson
Comment 10 2020-01-03 13:54:21 PST
Fixed in r254012
youenn fablet
Comment 11 2020-01-05 02:20:43 PST
(In reply to Dean Jackson from comment #10) > Fixed in r254012 Thanks!
Note You need to log in before you can comment on or make changes to this bug.