Process suppression for WebKit2 child processes is currently enabled or disabled using AutomaticTermination. This should be replaced with a new assertion SPI specific to process suppression.
<rdar://problem/12893550>
Created attachment 180076 [details] WIP Patch
Created attachment 180077 [details] WIP Patch
(In reply to comment #3) > Created an attachment (id=180077) [details] > Patch In ChildProcess::setApplicationIsOccluded. Simplified the check for occlusion change, by using ChildProcess::isApplicaitonOccluded(). Added a ASSERT.
Created attachment 180092 [details] Patch: not ready for commit
(In reply to comment #5) > Created an attachment (id=180092) [details] > Patch Renamed WKSI function to WKNSProcessInfoProcessAssertionWithTypes() to more closely reflect the underlying SPI method and renamed ChildProcess::m_processAssertionVisible to ChildProcess::m_processVisibleAssertion, since the former sounded like the assertion was visible rather than the process being visible.
Created attachment 180261 [details] Patch
(In reply to comment #7) > Created an attachment (id=180261) [details] > Patch Mark Rowe reviewed the patch and commented that ChildProcess::enableProcessSuppression and ChildProcess::disableProcessSuppression should be renamed since they are just taking a assertion for process visibility or alternatively he suggested that these methods can be removed entirely and the logic be moved to ChildProcess::setApplicaitonIsOccluded. I preferred the latter idea and hence moved the logic to manage the process visible assertion into ChildProcess::setApplicaitonIsOccluded itself.
Comment on attachment 180261 [details] Patch Clearing flags on attachment: 180261 Committed r138226: <http://trac.webkit.org/changeset/138226>
All reviewed patches have been landed. Closing bug.