Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 877c733ef1e206fab3a171414e245a457f486a1d
https://github.com/WebKit/WebKit/commit/877c733ef1e206fab3a171414e245a457f486a1d
Author: Richard Robinson <[email protected]>
Date: 2025-03-14 (Fri, 14 Mar 2025)
Changed paths:
M Source/WebKit/UIProcess/API/Swift/WebPage.swift
M Source/WebKit/_WebKit_SwiftUI/API/WebPage+SwiftUI.swift
M Source/WebKit/_WebKit_SwiftUI/API/WebPageNavigationAction+SwiftUI.swift
M
Source/WebKit/_WebKit_SwiftUI/Implementation/EnvironmentValues+Extras.swift
M Source/WebKit/_WebKit_SwiftUI/Implementation/ViewModifierContexts.swift
Log Message:
-----------
[SwiftUI] Update WebPage and related types to latest interface (Part 3)
https://bugs.webkit.org/show_bug.cgi?id=289721
rdar://146970195
Reviewed by Abrar Rahman Protyasha.
Update the interface of WebPage and its related types.
* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(callJavaScript(_:arguments:in:contentWorld:)):
Make this function `@discardableResult`, since it's valid to execute JS without
needing to use its return value.
Also, make the result `sending` so that it can cross isolation domains. This is
safe as all the possible return
types are themselves Sendable. Also make the `configuration` property internal,
since it is not the plan for it to become API.
* Source/WebKit/_WebKit_SwiftUI/API/WebPageNavigationAction+SwiftUI.swift:
Remove unnecessary spi import.
Promote `modifierFlags` to API.
* Source/WebKit/_WebKit_SwiftUI/API/WebPage+SwiftUI.swift:
* Source/WebKit/_WebKit_SwiftUI/Implementation/EnvironmentValues+Extras.swift:
* Source/WebKit/_WebKit_SwiftUI/Implementation/ViewModifierContexts.swift:
Remove unnecessary spi imports.
Canonical link: https://commits.webkit.org/292175@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