Bug 306871
| Summary: | Introduce Swift utility functions for WTF String and vectors of arrays | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | adrian_taylor |
| Component: | WebKit Process Model | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Enhancement | CC: | nham, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 305483 | ||
adrian_taylor
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/169532895>
EWS
Committed 306853@main (5ee6967eaa81): <https://commits.webkit.org/306853@main>
Reviewed commits have been landed. Closing PR #57287 and removing active labels.