Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 44309b26d25492c0a42cee0fc77d0cf06c235919
https://github.com/WebKit/WebKit/commit/44309b26d25492c0a42cee0fc77d0cf06c235919
Author: Per Arne Vollan <[email protected]>
Date: 2025-12-05 (Fri, 05 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/Cocoa/NavigationState.h
M Source/WebKit/UIProcess/Cocoa/NavigationState.mm
M Source/WebKit/UIProcess/RemotePageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebProcessActivityState.cpp
M Source/WebKit/UIProcess/WebProcessActivityState.h
Log Message:
-----------
The page load activity is only taken on the main frame WebProcess
https://bugs.webkit.org/show_bug.cgi?id=303595
rdar://165884028
Reviewed by Sihui Liu.
The page load activity is only taken on the main frame WebProcess. It should
also be taken on all iframe WebContent processes.
This patch moves the network activity member of NavigationState to the
WebProcessActivityState class, which is used by both
WebPageProxy and RemotePageProxy. A new iframe WebContent process will have a
page load activity taken if the main frame
WebContent process already has one.
* Source/WebKit/UIProcess/Cocoa/NavigationState.h:
* Source/WebKit/UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::releaseNetworkActivity):
(WebKit::NavigationState::didChangeIsLoading):
(WebKit::NavigationState::didSwapWebProcesses):
* Source/WebKit/UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::addActivity):
(WebKit::ProcessThrottler::expectedThrottleState):
* Source/WebKit/UIProcess/RemotePageProxy.cpp:
(WebKit::RemotePageProxy::injectPageIntoNewProcess):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::takeNetworkActivity):
(WebKit::WebPageProxy::dropNetworkActivity):
(WebKit::WebPageProxy::hasValidNetworkActivity const):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebProcessActivityState.cpp:
(WebKit::WebProcessActivityState::takeNetworkActivity):
(WebKit::WebProcessActivityState::dropNetworkActivity):
(WebKit::WebProcessActivityState::hasValidNetworkActivity const):
* Source/WebKit/UIProcess/WebProcessActivityState.h:
Canonical link: https://commits.webkit.org/304007@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications