Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e409318c348583665faf264919689decda631944
https://github.com/WebKit/WebKit/commit/e409318c348583665faf264919689decda631944
Author: Richard Robinson <[email protected]>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
M Source/WebKit/UIProcess/API/Swift/WebPage+Navigation.swift
M Source/WebKit/UIProcess/API/Swift/WebPage.swift
Log Message:
-----------
[SwiftUI] Improve the ergonomics of loading simple web content in WebPage
https://bugs.webkit.org/show_bug.cgi?id=294885
rdar://152904248
Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.
Improve the set of loading APIs in a few ways:
1. Add an overload of `load(_:)` that accepts a `URL?` to make it more
convenient to load URLs
without having to create a URLRequest directly. Consequently, a new error case
is added to handle
an unexpected `nil` URL.
2. Add a default value of `about:blank` to the `baseURL` parameter for loading
an HTML string so that
the client doesn't have to repeatedly type this value.
* Source/WebKit/UIProcess/API/Swift/WebPage+Navigation.swift:
* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(load(_:)):
(load(_:baseURL:)):
(toNavigationSequence(_:)):
Canonical link: https://commits.webkit.org/296599@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