Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1ff6a904f21ea8b1380c59ec4a717b0ce95c9627
      
https://github.com/WebKit/WebKit/commit/1ff6a904f21ea8b1380c59ec4a717b0ce95c9627
  Author: Aditya Keerthi <[email protected]>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/Swift/WebPage.swift
    M Source/WebKit/UIProcess/Cocoa/WKNavigationDelegateAdapter.swift
    M Tools/TestWebKitAPI/Tests/WebKit Swift/WebPageNavigationTests.swift

  Log Message:
  -----------
  [SwiftUI] `NavigationError.webContentProcessTerminated` is not thrown when 
the web content process is terminated
https://bugs.webkit.org/show_bug.cgi?id=295135
rdar://154534190

Reviewed by Richard Robinson.

Implement `webViewWebContentProcessDidTerminate(_:)` to observe when the web
content process is terminated, and throw the appropriate error.

* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(addNavigationEvent(_:any:for:)):

Refactored logic as a specific `WKNavigation` is not provided when the web
content process terminates. In this scenario, throw on all navigations.

(WebPage.terminateWebContentProcess):
* Source/WebKit/UIProcess/Cocoa/WKNavigationDelegateAdapter.swift:
(WKNavigationDelegateAdapter.failNavigationProgress(_:cocoaNavigation:)):
(WKNavigationDelegateAdapter.webViewWebContentProcessDidTerminate(_:)):
* Tools/TestWebKitAPI/Tests/WebKit Swift/WebPageNavigationTests.swift:
(WebPageNavigationTests.failedNavigationWithWebContentProcessTerminated):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to