Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cfaa7420dd35be9747e23d977c84d45f27e2d752
      
https://github.com/WebKit/WebKit/commit/cfaa7420dd35be9747e23d977c84d45f27e2d752
  Author: Ben Nham <[email protected]>
  Date:   2026-08-18 (Tue, 18 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxyTesting.cpp
    M Source/WebKit/UIProcess/WebPageProxyTesting.h
    M Source/WebKit/WebProcess/WebPage/WebPageTesting.cpp
    M Source/WebKit/WebProcess/WebPage/WebPageTesting.h
    M Source/WebKit/WebProcess/WebPage/WebPageTesting.messages.in
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

  Log Message:
  -----------
  [Site Isolation] Broadcast WindowScreenDidChange to remote frame processes
https://bugs.webkit.org/show_bug.cgi?id=321904
rdar://problem/185078141

Reviewed by Simon Fraser.

This fixes WebPageProxy::windowScreenDidChange() to broadcast the 
WindowScreenDidChange message to
all of the page's processes rather than just the main frame's process.

There's another message above (PageScreenDidChange) which looks like it might 
need to be broadcast
as well (it's used by the momentum dispatcher), but I'm not really sure. I left 
a FIXME there and
will ping the layout and rendering team about it.

* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm:
(-[WKWebView _setDisplayForTesting:nominalFramesPerSecond:]):
(-[WKWebView _preferredRenderingUpdateIntervalsForTesting:]):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::swapToProvisionalPage):
(WebKit::WebPageProxy::windowScreenDidChange):
* Source/WebKit/UIProcess/WebPageProxyTesting.cpp:
(WebKit::WebPageProxyTesting::setDisplayForTesting):
(WebKit::WebPageProxyTesting::preferredRenderingUpdateIntervalsInMilliseconds):
* Source/WebKit/UIProcess/WebPageProxyTesting.h:
(WebKit::WebPageProxyTesting::displayNominalFramesPerSecondOverride const):
* Source/WebKit/WebProcess/WebPage/WebPageTesting.cpp:
(WebKit::WebPageTesting::preferredRenderingUpdateIntervalInMilliseconds):
* Source/WebKit/WebProcess/WebPage/WebPageTesting.h:
* Source/WebKit/WebProcess/WebPage/WebPageTesting.messages.in:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::preferredRenderingUpdateIntervals):
(TestWebKitAPI::TEST(SiteIsolation, DisplayRefreshRateReachesSubframeProcess)):
(TestWebKitAPI::(SiteIsolation, DisplayRefreshRateReachesSubframeProcess)):

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



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

Reply via email to