Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6e1a8613996ee1d6408341e5e6ee120862352f5a
      
https://github.com/WebKit/WebKit/commit/6e1a8613996ee1d6408341e5e6ee120862352f5a
  Author: Zak Ridouh <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Helpers/cocoa/Foundation+Extras.swift
    M Tools/TestWebKitAPI/Helpers/cocoa/SiteIsolationTestUtilities.swift
    M Tools/TestWebKitAPI/Helpers/cocoa/WebPage+Extras.swift
    M Tools/TestWebKitAPI/Helpers/cocoa/WebPageConfiguration+Extras.swift
    M Tools/TestWebKitAPI/Tests/WebKit/WebPage/JSHandleTests.swift
    M Tools/TestWebKitAPI/Tests/WebKit/WebPage/WebPageTests.swift

  Log Message:
  -----------
  [Swift Testing] Add helpers for checking frame trees, processes, and alerts 
in site isolation tests
https://bugs.webkit.org/show_bug.cgi?id=326294
rdar://189145501

Reviewed by Richard Robinson.

Add Swift counterparts of the frame tree and process checks in 
SiteIsolation.mm, a UI delegate that keeps alerts until a
test waits for them, and helpers for loading pages through the test server's 
HTTPS proxy with WebPage. See
https://webkit.org/b/326295 for tests that use them.

* Tools/TestWebKitAPI/Helpers/cocoa/Foundation+Extras.swift:
(Array.hasSameElementsInAnyOrder(as:)):
* Tools/TestWebKitAPI/Helpers/cocoa/SiteIsolationTestUtilities.swift:
(FrameTree.local(_:children:)):
(FrameTree.remote(children:)):
(FrameTree.== ): Compare child frames as multisets, like 
checkFrameTreesInProcesses().
(FrameTree.description):
(FrameTreesInProcesses.== ): Ditto for the trees of each process.
(FrameTreesInProcesses.processIdentifier(hosting:)):
(WKWebView.frameTreesInProcesses()):
(isProcessRunning(_:)):
(AlertRecorder.nextAlert(timeout:)):
(AlertRecorder.handleJavaScriptAlert(message:initiatedBy:)):
* Tools/TestWebKitAPI/Helpers/cocoa/WebPage+Extras.swift:
(NavigationDeciderAllowingAnyTLSCertificate.decideAuthenticationChallengeDisposition(for:)):
(WebPage.frameTreesInProcesses()):
* Tools/TestWebKitAPI/Helpers/cocoa/WebPageConfiguration+Extras.swift:
(WebPage.Configuration.init(httpsProxyFor:)):
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/JSHandleTests.swift: Use the shared 
configuration initializer and navigation
decider.
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/WebPageTests.swift: Use the shared 
navigation decider.

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



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

Reply via email to