Bug 309527
| Summary: | Make lifetime activity use background assertion by default on macOS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ben Nham <nham> |
| Component: | WebKit Misc. | Assignee: | Ben Nham <nham> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ben Nham
On macOS, all processes get a lifetime activity by default at creation time which currently uses a foreground assertion. This means processes that don't use RunningBoard throttling (i.e. NetworkProcess and GPUProcess) always run at foreground priority with the focal flag set, which is higher than we intended as a default priority. Change the default assertion to be a background assertion instead. When any WebContent is hosting a visible webpage, this will have no impact as NetworkProcess and GPUProcess will detect the presence of the visible webpage and boost themselves back up to foreground priority .
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ben Nham
<rdar://problem/166762210>
Ben Nham
Pull request: https://github.com/WebKit/WebKit/pull/60226
EWS
Committed 309012@main (6830b122e210): <https://commits.webkit.org/309012@main>
Reviewed commits have been landed. Closing PR #60226 and removing active labels.