[webkit-changes] [WebKit/WebKit] 408608: [SwiftUI] Add more of the main functionality to We...

Richard Robinson noreply at github.com
Thu Dec 5 19:35:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 408608a269ff1452e2d40ca05aeab6470c4d289b
      https://github.com/WebKit/WebKit/commit/408608a269ff1452e2d40ca05aeab6470c4d289b
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-12-05 (Thu, 05 Dec 2024)

  Changed paths:
    A Source/WebKit/UIProcess/API/Swift/View+WebViewModifiers.swift
    A Source/WebKit/UIProcess/API/Swift/WebPage+FrameInfo.swift
    M Source/WebKit/UIProcess/API/Swift/WebPage.swift
    M Source/WebKit/UIProcess/API/Swift/WebView.swift
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Tools/MiniBrowser/SwiftUI/ContentView.swift
    M Tools/TestWebKitAPI/Tests/WebKit Swift/WebPage.swift

  Log Message:
  -----------
  [SwiftUI] Add more of the main functionality to WebPage and WebView
https://bugs.webkit.org/show_bug.cgi?id=283653
rdar://140507710

Reviewed by Abrar Rahman Protyasha.

This adds most of the missing capabilities to WebPage and WebView.

* Source/WebKit/UIProcess/API/Swift/View+WebViewModifiers.swift: Added.
(View.webViewAllowsBackForwardNavigationGestures(_:)):
(View.webViewAllowsLinkPreview(_:)):
(View.webViewAllowsTabFocusingLinks(_:)):
(View.webViewAllowsTextInteraction(_:)):
* Source/WebKit/UIProcess/API/Swift/WebPage+FrameInfo.swift: Added.
(FrameInfo.isMainFrame):
(FrameInfo.request):
(FrameInfo.securityOrigin):
(FrameInfo.wrapped):
* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(WebPage_v0.isWritingToolsActive):
(WebPage_v0.handlesURLScheme(_:)):
(WebPage_v0.load(_:mimeType:characterEncoding:baseURL:)):
(WebPage_v0.load(_:allowingReadAccessTo:)):
(WebPage_v0.loadSimulatedRequest(_:response:responseData:)):
(WebPage_v0.loadSimulatedRequest(_:responseHTML:)):
(WebPage_v0.reload(_:)):
(WebPage_v0.stopLoading):
(WebPage_v0.callAsyncJavaScript(_:arguments:in:contentWorld:)):
(WebPage_v0.snapshot(_:)):
(WebPage_v0.pdf(_:)):
(WebPage_v0.webArchiveData):
* Source/WebKit/UIProcess/API/Swift/WebView.swift:
(WebViewRepresentable.updatePlatformView(_:context:)):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/MiniBrowser/SwiftUI/ContentView.swift:
(UnifiedBar.body):
(ContentView.body):
(ContentView.urlFieldIsFocused): Deleted.
* Tools/TestWebKitAPI/Tests/WebKit Swift/WebPage.swift:
(WebPageTests.javaScriptEvaluation):

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



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


More information about the webkit-changes mailing list