WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
191965
CompletionHandler-based async IPC messages only work when the completion handler takes a single argument
https://bugs.webkit.org/show_bug.cgi?id=191965
Summary
CompletionHandler-based async IPC messages only work when the completion hand...
Wenson Hsieh
Reported
2018-11-26 08:44:28 PST
For instance, in a messages.in file: SomeMessage() -> () Async
Attachments
Patch
(11.25 KB, patch)
2018-11-26 10:09 PST
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Patch for landing
(11.25 KB, patch)
2018-11-26 10:49 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2018-11-26 09:26:37 PST
(In reply to Wenson Hsieh from
comment #0
)
> For instance, in a messages.in file: > > SomeMessage() -> () Async
This currently generates an IPC reply invocation like so: void SomeMessage::callReply(IPC::Decoder& decoder, CompletionHandler<void()>&& completionHandler) { completionHandler(WTFMove(*)); }
Wenson Hsieh
Comment 2
2018-11-26 10:09:58 PST
Created
attachment 355648
[details]
Patch
Wenson Hsieh
Comment 3
2018-11-26 10:20:02 PST
Comment on
attachment 355648
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=355648&action=review
Thanks for the review!
> Source/WebKit/ChangeLog:3 > + CompletionHandler-based async IPC messages should support completion handlers that take no arguments
I realized after posting this for review that I forgot to update the ChangeLog here after changing the bug title in Bugzilla. I'll fix the title before landing.
Wenson Hsieh
Comment 4
2018-11-26 10:49:14 PST
Created
attachment 355653
[details]
Patch for landing
WebKit Commit Bot
Comment 5
2018-11-26 11:55:39 PST
Comment on
attachment 355653
[details]
Patch for landing Clearing flags on attachment: 355653 Committed
r238507
: <
https://trac.webkit.org/changeset/238507
>
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