Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8bee5a463779474ff16b190214e91f1993485b29
https://github.com/WebKit/WebKit/commit/8bee5a463779474ff16b190214e91f1993485b29
Author: Kimmo Kinnunen <[email protected]>
Date: 2025-12-09 (Tue, 09 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
M Tools/TestWebKitAPI/Tests/WebKitCocoa/JSBuffer.mm
Log Message:
-----------
Add SPI to evaluate long javascript strings from explicit shared memory
buffers
https://bugs.webkit.org/show_bug.cgi?id=303747
rdar://166053768
Reviewed by Alex Christensen.
The SPI allows copying data to a buffer for a string once and sending
that to multiple processes explicitly. This enables sharing of the
string data between the processes.
The SPI uses explicit copying instead of VM copying, as VM copies might
share the data that exists before or after the string in the first and
last memory page.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/JSBuffer.mm
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView
_evaluateJavaScriptFromBuffer:withEncoding:withSourceURL:inFrame:inContentWorld:withUserGesture:completionHandler:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/JSBuffer.mm:
(TEST(JSBuffer, EvaluateJavaScriptFromBuffer)):
Canonical link: https://commits.webkit.org/304155@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications