Bug 191965

Summary: CompletionHandler-based async IPC messages only work when the completion handler takes a single argument
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebKit2Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, andersca, commit-queue, thorton, webkit-bug-importer
Priority: P2 Keywords: DoNotImportToRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
thorton: review+
Patch for landing none

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+
Patch for landing (11.25 KB, patch)
2018-11-26 10:49 PST, Wenson Hsieh
no flags
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
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.