Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6fb7e92d9fc736efdd6b49ee11a56a31a9c271d0
      
https://github.com/WebKit/WebKit/commit/6fb7e92d9fc736efdd6b49ee11a56a31a9c271d0
  Author: Richard Robinson <[email protected]>
  Date:   2026-09-01 (Tue, 01 Sep 2026)

  Changed paths:
    M Source/WebKit/Modules/Internal/module.modulemap
    M Source/WebKit/Shared/Foundation+Extras.swift
    A Source/WebKit/Shared/JavaScriptEvaluationResultCxxInteropSupport.h
    M Source/WebKit/Shared/RunJavaScriptParameters.h
    A Source/WebKit/Shared/RunJavaScriptResult.swift
    M Source/WebKit/UIProcess/WebPageProxy.swift
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [NewCodable] Make it possible to call `WebPageProxy.runJavaScriptInMainFrame` 
from Swift
https://bugs.webkit.org/show_bug.cgi?id=323061
rdar://186324281

Reviewed by Abrar Rahman Protyasha.

Add a Swift interface for the `runJavaScriptInMainFrame` to abstract all the 
underlying
bridging needed.

This is not yet currently testable by itself.

* Source/WebKit/Modules/Internal/module.modulemap:
* Source/WebKit/Shared/Foundation+Extras.swift:
(CopyableBox.value):
(CopyableBox.take):
* Source/WebKit/Shared/JavaScriptEvaluationResultCxxInteropSupport.cpp: Copied 
from Source/WebKit/Shared/RunJavaScriptParameters.h.
* Source/WebKit/Shared/JavaScriptEvaluationResultCxxInteropSupport.h: Added.
(WebKit::JavaScriptEvaluationOwnedResult::JavaScriptEvaluationOwnedResult):
(WebKit::JavaScriptEvaluationOwnedResult::begin const):
(WebKit::JavaScriptEvaluationOwnedResult::end const):
(WebKit::CxxInteropSupport::takeValue):
* Source/WebKit/Shared/RunJavaScriptParameters.h:
* Source/WebKit/Shared/RunJavaScriptResult.swift: Copied from 
Source/WebKit/UIProcess/WebPageProxy.swift.
(WebKit.__take(_:)):
* Source/WebKit/UIProcess/WebPageProxy.swift:
(WebKit.editorStateCopy): Deleted.
(WebKit.editorState): Deleted.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



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

Reply via email to