Pages that update their title now get suspended when backgrounded since we've stopped taking near-suspended assertions on both iOS and macOS. We used to monitor pages in the background for 8 minutes to see if they update their title while in the background, if they did, we would let them keep running in the background. Since we no longer take near-suspended assertions, we can no longer observe pages in the background (since they'd get suspended as soon as backgrounded). To address the issue, we now monitor title changes while in the foreground. If the page updates its title, we now take a background assertion to let it keep running after backgrounding. This is not perfect but this addresses the regression for now. We should revisit though because this is too permissive.
<rdar://124222280>
Pull request: https://github.com/WebKit/WebKit/pull/25737
Committed 275960@main (3130b409ab45): <https://commits.webkit.org/275960@main> Reviewed commits have been landed. Closing PR #25737 and removing active labels.
Re-opened since this is blocked by bug 271057
Pull request: https://github.com/WebKit/WebKit/pull/26170
Committed 276418@main (7cd42ac1d51c): <https://commits.webkit.org/276418@main> Reviewed commits have been landed. Closing PR #26170 and removing active labels.