Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1dd806726df81407e24fd393b02c1012148f6dce
      
https://github.com/WebKit/WebKit/commit/1dd806726df81407e24fd393b02c1012148f6dce
  Author: Per Arne Vollan <[email protected]>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M Source/WebKit/UIProcess/RemotePageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h

  Log Message:
  -----------
  [Site Isolation] An iframe WebContent process can potentially be shortly 
suspended on launch
https://bugs.webkit.org/show_bug.cgi?id=307679
rdar://170234688

Reviewed by Sihui Liu.

This is because we drop the lifetime activity just before taking a visibility 
activity.
This patch switches the ordering and moves the code to the RemotePageProxy 
constructor.
Furthermore, this patch is making sure we take the activities also in the cases 
where
the WebContent process tree has inconsistensies in the activity state. In 
theory, there
should be no such inconsistency, but in case there is, this change will guard 
against
that. Initial measurements also show that this change is a significant 
improvement in
page load performance.

* Source/WebKit/UIProcess/RemotePageProxy.cpp:
(WebKit::RemotePageProxy::RemotePageProxy):
(WebKit::RemotePageProxy::injectPageIntoNewProcess):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::hasValidVisibleActivity const):
(WebKit::WebPageProxy::hasValidAudibleActivity const):
(WebKit::WebPageProxy::hasValidCapturingActivity const):
(WebKit::WebPageProxy::hasValidMutedCaptureAssertion const):
(WebKit::WebPageProxy::hasValidMainFrameVisibleActivity const):
(WebKit::WebPageProxy::hasValidMainFrameAudibleActivity const):
(WebKit::WebPageProxy::hasValidMainFrameCapturingActivity const):
(WebKit::WebPageProxy::hasValidMainFrameMutedCaptureAssertion const):
(WebKit::WebPageProxy::hasValidMainFrameNetworkActivity const):
(WebKit::WebPageProxy::takeActivitiesOnRemotePage):
* Source/WebKit/UIProcess/WebPageProxy.h:

Canonical link: https://commits.webkit.org/307546@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to