RESOLVED FIXED306871
Introduce Swift utility functions for WTF String and vectors of arrays
https://bugs.webkit.org/show_bug.cgi?id=306871
Summary Introduce Swift utility functions for WTF String and vectors of arrays
adrian_taylor
Reported 2026-02-03 07:32:27 PST
We're introducing a Swift version of the Back Forward list message handler. We need to manipulate some WTF and WebKit types from that code, and we want to make it easier to do so. Specifically, - we want to convert freely from WTF strings to Swift strings, in both directions - we want to be able to create an API::Array from a Swift array of API::Objects - we want to be able to create a WTF::Vector<Ref<T>> from a Swift array of T - we want to be able to iterate over WTF::Vector<Ref<T>> For now, we don't have Swift code within WTF so all this stuff will be kept in a StdlibExtras.swift file alongside the Back Forward List. The same thing has been previously done in WebGPU Swift code. rdar://164119356 is an internal Apple reference to move it to WTF eventually and that would apply here too.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-03 07:32:33 PST
EWS
Comment 2 2026-02-05 03:04:19 PST
Committed 306853@main (5ee6967eaa81): <https://commits.webkit.org/306853@main> Reviewed commits have been landed. Closing PR #57287 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.