Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 273837bcb9abb0793a8d7a7002c27572eb37f850
https://github.com/WebKit/WebKit/commit/273837bcb9abb0793a8d7a7002c27572eb37f850
Author: Matt Woodrow <[email protected]>
Date: 2026-08-20 (Thu, 20 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/WebPageProxy.h
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm
Log Message:
-----------
[Site Isolation] endPrinting is routed to the main-frame process, leaking
print state in cross-site subframe processes.
https://bugs.webkit.org/show_bug.cgi?id=322077
<rdar://182930024>
Reviewed by Aditya Keerthi.
Hold the frame ID that was used to start printing, and route endPrinting to the
right process.
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm:
(-[WKWebView _computePagesForPrinting:completionHandler:]):
(-[WKWebView _endPrintingForTesting:]):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::beginPrinting):
(WebKit::WebPageProxy::endPrinting):
(WebKit::WebPageProxy::computePagesForPrinting):
(WebKit::WebPageProxy::drawPagesForPrinting):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation,
EndPrintingIsRoutedToTheFrameThatStartedPrinting)):
Canonical link: https://commits.webkit.org/319511@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications