Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c76d70bab55fccb3f39cf66613b302cfefe237c5
      
https://github.com/WebKit/WebKit/commit/c76d70bab55fccb3f39cf66613b302cfefe237c5
  Author: Alex Christensen <[email protected]>
  Date:   2026-08-11 (Tue, 11 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp
    M Source/WebKit/UIProcess/ProvisionalPageProxy.h
    M Source/WebKit/UIProcess/WebFrameProxy.cpp
    M Source/WebKit/UIProcess/WebFrameProxy.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/UIProcess/WebPageProxy.messages.in
    M Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebViewServerTrustKVC.mm

  Log Message:
  -----------
  Send bool indicating presence of CertificateInfo from web
process
https://bugs.webkit.org/show_bug.cgi?id=321456
rdar://184545561

Reviewed by Chris Dumez.

In 316854@main I stopped sending CertificateInfo from the web process to the UI 
process.
We can't trust the contents of the CertificateInfo from a possibly-compromised 
web process.
But in 318495@main I found that there are some circumstances where we need 
input from
the web process about whether or not to get the CertificateInfo from the 
network process,
such as using WKWebView.loadHTMLString with the same URL as we've already 
loaded.
This sends a bool instead of a CertificateInfo indicating whether we should get 
the
CertificateInfo from the network process.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebViewServerTrustKVC.mm

* Source/WebKit/UIProcess/ProvisionalPageProxy.cpp:
(WebKit::ProvisionalPageProxy::didCommitLoadForFrame):
* Source/WebKit/UIProcess/ProvisionalPageProxy.h:
*
Source/WebKit/UIProcess/WebFrameProxy.cpp:
(WebKit::WebFrameProxy::commitProvisionalFrame):
(WebKit::WebFrameProxy::commitCertificateInfo):
* Source/WebKit/UIProcess/WebFrameProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::commitProvisionalPage):
(WebKit::WebPageProxy::didCommitLoadForFrame):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.messages.in:
* Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp:
(WebKit::WebLocalFrameLoaderClient::dispatchDidCommitLoad):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebViewServerTrustKVC.mm:
(TEST(WKWebView, ServerTrustKVCWithCOOP)):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Dn7h1X6cg1&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE4OTgyQG1haW4=&emid=6cb12c3d-adf0-4713-9dc3-b1bbdd6f4428&c=11



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

Reply via email to