Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e0e599e62b7ed43af3f348430aef948f2562ca5e
https://github.com/WebKit/WebKit/commit/e0e599e62b7ed43af3f348430aef948f2562ca5e
Author: Richard Robinson <[email protected]>
Date: 2024-11-20 (Wed, 20 Nov 2024)
Changed paths:
M Source/WebKit/Configurations/Base.xcconfig
M Source/WebKit/Configurations/BaseTarget.xcconfig
A Source/WebKit/UIProcess/API/Swift/WKNavigationDelegateAdapter.swift
A Source/WebKit/UIProcess/API/Swift/WebPage+Navigation.swift
A Source/WebKit/UIProcess/API/Swift/WebPage.swift
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
M Tools/TestWebKitAPI/Configurations/TestWebKitAPIBundle.xcconfig
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WebKit Swift/WebPageNavigation.swift
Log Message:
-----------
[SwiftUI] Introduce WebPage
https://bugs.webkit.org/show_bug.cgi?id=283244
rdar://140050033
Reviewed by Wenson Hsieh.
Introduce a very bare-bones `WebPage` type. Currently, it can only load url
requests or html strings
and track the corresponding navigation events.
* Source/WebKit/UIProcess/API/Swift/WKNavigationDelegateAdapter.swift: Added.
(WKNavigationDelegateAdapter.navigationProgressContinuation):
(WKNavigationDelegateAdapter.webView(_:didStartProvisionalNavigation:)):
(WKNavigationDelegateAdapter.webView(_:didReceiveServerRedirectForProvisionalNavigation:)):
(WKNavigationDelegateAdapter.webView(_:didCommit:)):
(WKNavigationDelegateAdapter.webView(_:didFinish:)):
(WKNavigationDelegateAdapter.webView(_:didFailProvisionalNavigation:withError:)):
(WKNavigationDelegateAdapter.webView(_:didFail:withError:)):
* Source/WebKit/UIProcess/API/Swift/WebPage+Navigation.swift: Added.
(Navigation.makeAsyncIterator):
(Iterator.source):
(Iterator.next):
* Source/WebKit/UIProcess/API/Swift/WebPage.swift: Added.
(WebPage.navigate(to:)):
(WebPage.navigate(to:baseURL:)):
(WebPage.createNavigation(_:)):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKit Swift/WebPageNavigation.swift: Added.
(URL.aboutBlank):
(WebPageNavigationTests.basicNavigation):
(WebPageNavigationTests.failedProvisionNavigationThrowsError):
Canonical link: https://commits.webkit.org/286886@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