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

  Changed paths:
    M Source/WebKit/UIProcess/Network/NetworkProcessProxy.h
    M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp
    M Source/WebKit/UIProcess/WebFrameProxy.cpp
    M Source/WebKit/UIProcess/WebFrameProxy.h
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebViewServerTrustKVC.mm

  Log Message:
  -----------
  Fix 
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/resource-popup.https.html
 to have correct certificate info
https://bugs.webkit.org/show_bug.cgi?id=320765
rdar://183768315

Reviewed by Chris Dumez.

317375@main had a few issues.

It introduced a bool to prevent waitForAndDispatchImmediately re-entry,
but at the cost of sometimes not having the correct certificate info.
The real bug was that after a COOP-initiated process swap, we weren't
taking the certificate info received by the old main frame and giving
it to the new main frame.

I added a unit test that times out waiting for a server trust that
never appears before this fix, showing clearly the functional regression
from 316854@main that this PR fixes and 317375@main did not.

* Source/WebKit/UIProcess/Network/NetworkProcessProxy.h:
* Source/WebKit/UIProcess/ProvisionalPageProxy.cpp:
(WebKit::ProvisionalPageProxy::ProvisionalPageProxy):
* Source/WebKit/UIProcess/WebFrameProxy.cpp:
(WebKit::WebFrameProxy::certificateInfoFromNetworkProcess const):
(WebKit::WebFrameProxy::commitCertificateInfo):
(WebKit::WebFrameProxy::copyCertificateInfoForProcessSwapOnNavigationResponse):
(WebKit::WebFrameProxy::waitForCertificateInfoFromNetworkProcess):
* Source/WebKit/UIProcess/WebFrameProxy.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebViewServerTrustKVC.mm:
(TEST(WKWebView, ServerTrustKVCWithCOOP)):

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



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

Reply via email to