Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 479dbd076c261b39fb661b089532a5efd9db53d9 https://github.com/WebKit/WebKit/commit/479dbd076c261b39fb661b089532a5efd9db53d9 Author: Chris Dumez <cdu...@apple.com> Date: 2023-05-03 (Wed, 03 May 2023)
Changed paths: M Source/WebKit/UIProcess/ProcessThrottler.cpp M Source/WebKit/UIProcess/ProcessThrottler.h M Source/WebKit/UIProcess/WebPageProxy.cpp M Source/WebKit/UIProcess/WebPageProxy.h M Source/WebKit/UIProcess/WebPageProxyInternals.h Log Message: ----------- If a page changes its title while in the background, allow the page to run in the background https://bugs.webkit.org/show_bug.cgi?id=256259 rdar://103388697 Reviewed by Ben Nham. If a page changes its title while in the background, allow the page to run in the background, as long as the app is foreground. Previously, the page changing its title would buy its an extra 8 minutes of background running time. We are now more permissive and allow the page to run indefinitely in the background when we detect this (as long as the application is foreground). * Source/WebKit/UIProcess/ProcessThrottler.cpp: (WebKit::ProcessThrottler::ProcessThrottler): (WebKit::ProcessThrottler::dropSuspendedAssertionTimerFired): (WebKit::ProcessThrottler::pageAllowedToRunInTheBackgroundToken): (WebKit::ProcessThrottler::numberOfPagesAllowedToRunInTheBackgroundChanged): (WebKit::ProcessThrottler::delaySuspension): Deleted. * Source/WebKit/UIProcess/ProcessThrottler.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::ProcessActivityState::reset): (WebKit::WebPageProxy::didCommitLoadForFrame): (WebKit::WebPageProxy::didReceiveTitleForFrame): (WebKit::WebPageProxy::resetStateAfterProcessExited): (WebKit::WebPageProxy::pageWillLikelyUseNotifications): (WebKit::WebPageProxy::showNotification): (WebKit::WebPageProxy::ProcessActivityState::takeLikelyToUseNotificationsActivity): Deleted. (WebKit::WebPageProxy::ProcessActivityState::dropLikelyToUseNotificationsActivity): Deleted. * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxyInternals.h: Canonical link: https://commits.webkit.org/263651@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes