Bug 303180
| Summary: | Allow const calls to CompletionHandler from Swift | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | adrian_taylor |
| Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
adrian_taylor
Swift/C++ interop does not allow us to pass move-only types from C++ to Swift, so we need to wrap CompletionHandler in a container such as WTF::Cell (see https://github.com/WebKit/WebKit/pull/54517). Methods on the inner CompletionHandler can then be called using box.pointee(...) in Swift. That only allows us to call operator() const, so we need to add such a method to CompletionHandler.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/165483404>
adrian_taylor
Pull request: https://github.com/WebKit/WebKit/pull/54523