Bug 225143

Summary: When IPC testing API is enabled, GPU process shouldn't kill Web Process
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Tools / TestsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, ggaren, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing
none
Patch for landing none

Description Ryosuke Niwa 2021-04-28 01:00:30 PDT
Like UI process, we should make GPU process not kill a Web process or die
when it receives an invalid message from the Web process.
Comment 1 Ryosuke Niwa 2021-04-28 01:01:05 PDT
<rdar://70692277>
Comment 2 Ryosuke Niwa 2021-04-28 01:11:20 PDT
Created attachment 427246 [details]
Patch
Comment 3 Chris Dumez 2021-04-28 07:50:37 PDT
Comment on attachment 427246 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=427246&action=review

> Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp:336
> +    if (connection.ignoreInvalidMessageForTesting())

Do we want to do that before the RELEASE_LOG_FAULT since RELEASE_LOG_FAULT generates a simulated crash trace (on iOS at least)?
Comment 4 Ryosuke Niwa 2021-04-28 12:05:40 PDT
(In reply to Chris Dumez from comment #3)
> Comment on attachment 427246 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=427246&action=review
> 
> > Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp:336
> > +    if (connection.ignoreInvalidMessageForTesting())
> 
> Do we want to do that before the RELEASE_LOG_FAULT since RELEASE_LOG_FAULT
> generates a simulated crash trace (on iOS at least)?

That's a good point.
Comment 5 Ryosuke Niwa 2021-04-28 12:06:12 PDT
Created attachment 427287 [details]
Patch for landing
Comment 6 EWS 2021-04-28 12:07:19 PDT
Tools/Scripts/svn-apply failed to apply attachment 427287 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 7 Ryosuke Niwa 2021-04-28 14:44:34 PDT
Created attachment 427295 [details]
Patch for landing
Comment 8 EWS 2021-04-28 14:45:32 PDT
Invalid ChangeLog at /Volumes/Data/worker/Commit-Queue/build/Source/WebKit/ChangeLog
Comment 9 Ryosuke Niwa 2021-04-28 14:48:38 PDT
Created attachment 427296 [details]
Patch for landing
Comment 10 Ryosuke Niwa 2021-04-28 14:54:48 PDT
Comment on attachment 427296 [details]
Patch for landing

Clearing flags on attachment: 427296

Committed r276733 (237134@main): <https://commits.webkit.org/237134@main>
Comment 11 Ryosuke Niwa 2021-04-28 14:54:50 PDT
All reviewed patches have been landed.  Closing bug.