Bug 195382

Summary: [iOS] ProcessDidResume() IPC should be sent upon resuming when ProcessWillSuspendImminently() IPC was sent
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ggaren, jer.noble, koivisto, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 195416    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2019-03-06 15:03:33 PST
ProcessDidResume() IPC should be sent upon resuming when ProcessWillSuspendImminently() IPC was sent. Currently, we only send ProcessDidResume() to the WebProcess if PrepareToSuspend() was sent, not when the more urgent ProcessWillSuspendImminently() IPC was sent.

This mismatch has lead to bugs because the WebProcess does not know it got resumed and failed to unfreeze the layers it froze upon suspension.
Comment 1 Chris Dumez 2019-03-06 15:04:32 PST
<rdar://problem/48642739>
Comment 2 Chris Dumez 2019-03-06 15:55:32 PST
Created attachment 363804 [details]
Patch
Comment 3 Geoffrey Garen 2019-03-06 16:15:44 PST
Comment on attachment 363804 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2019-03-06 16:43:30 PST
Comment on attachment 363804 [details]
Patch

Clearing flags on attachment: 363804

Committed r242580: <https://trac.webkit.org/changeset/242580>
Comment 5 WebKit Commit Bot 2019-03-06 16:43:32 PST
All reviewed patches have been landed.  Closing bug.