Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f36bb396c3e5260f5fe9d19397e083d3e64d3844
https://github.com/WebKit/WebKit/commit/f36bb396c3e5260f5fe9d19397e083d3e64d3844
Author: Chris Dumez <[email protected]>
Date: 2024-04-19 (Fri, 19 Apr 2024)
Changed paths:
M Source/WebKit/Shared/WebEvent.cpp
M Source/WebKit/Shared/WebEvent.h
M Source/WebKit/Shared/WebKeyboardEvent.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxyInternals.h
Log Message:
-----------
Refine heuristic to allow pages to run in the background
https://bugs.webkit.org/show_bug.cgi?id=272950
Reviewed by Ben Nham.
Refine heuristic to allow pages to run in the background so that title changes
only grant background running time if:
- There was no main frame load commit in the last 5 seconds
- There was no user activation in the last 5 seconds
Our previous heuristic was too permissive.
* Source/WebKit/Shared/WebEvent.cpp:
(WebKit::WebEvent::isActivationTriggeringEvent const):
* Source/WebKit/Shared/WebEvent.h:
* Source/WebKit/Shared/WebKeyboardEvent.h:
(isType):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::sendMouseEvent):
(WebKit::WebPageProxy::sendKeyEvent):
(WebKit::WebPageProxy::sendPreventableTouchEvent):
(WebKit::WebPageProxy::sendUnpreventableTouchEvent):
(WebKit::WebPageProxy::didCommitLoadForFrame):
(WebKit::WebPageProxy::didReceiveTitleForFrame):
* Source/WebKit/UIProcess/WebPageProxyInternals.h:
Canonical link: https://commits.webkit.org/277772@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes