WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
303180
Allow const calls to CompletionHandler from Swift
https://bugs.webkit.org/show_bug.cgi?id=303180
Summary
Allow const calls to CompletionHandler from Swift
adrian_taylor
Reported
2025-11-27 05:42:52 PST
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
Comment 1
2025-11-27 05:43:00 PST
<
rdar://problem/165483404
>
adrian_taylor
Comment 2
2025-11-27 05:48:17 PST
Pull request:
https://github.com/WebKit/WebKit/pull/54523
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug