WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205065
Leverage the fact that WebPageProxy subclasses IPC::MessageSender to simplify IPC sending code
https://bugs.webkit.org/show_bug.cgi?id=205065
Summary
Leverage the fact that WebPageProxy subclasses IPC::MessageSender to simplify...
Chris Dumez
Reported
2019-12-10 08:53:34 PST
Leverage the fact that WebPageProxy subclasses IPC::MessageSender to simplify IPC sending code.
Attachments
Patch
(121.57 KB, patch)
2019-12-10 09:05 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(127.36 KB, patch)
2019-12-10 09:25 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(126.55 KB, patch)
2019-12-10 12:00 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(135.22 KB, patch)
2019-12-10 12:36 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2019-12-10 09:05:41 PST
Created
attachment 385268
[details]
Patch
Chris Dumez
Comment 2
2019-12-10 09:25:42 PST
Created
attachment 385271
[details]
Patch
Chris Dumez
Comment 3
2019-12-10 12:00:46 PST
Created
attachment 385292
[details]
Patch
Alex Christensen
Comment 4
2019-12-10 12:10:48 PST
Comment on
attachment 385292
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=385292&action=review
r=me with one important comment and one less important comment.
> Source/WebKit/Platform/IPC/MessageSender.h:83 > + messageSenderConnection()->sendWithAsyncReply(WTFMove(message), WTFMove(completionHandler), destinationID, sendOptions);
What if the connection is null? This should probably call sendMessage like AuxiliaryProcessProxy::sendWithAsyncReply does.
> Source/WebKit/UIProcess/WebPageProxy.h:511 > - void systemPreviewActionTriggered(const WebCore::SystemPreviewInfo&, const String&) const; > + void systemPreviewActionTriggered(const WebCore::SystemPreviewInfo&, const String&);
Why not make send const?
Chris Dumez
Comment 5
2019-12-10 12:20:03 PST
Comment on
attachment 385292
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=385292&action=review
>> Source/WebKit/Platform/IPC/MessageSender.h:83 >> + messageSenderConnection()->sendWithAsyncReply(WTFMove(message), WTFMove(completionHandler), destinationID, sendOptions); > > What if the connection is null? This should probably call sendMessage like AuxiliaryProcessProxy::sendWithAsyncReply does.
Ok, I will look into this.
>> Source/WebKit/UIProcess/WebPageProxy.h:511 >> + void systemPreviewActionTriggered(const WebCore::SystemPreviewInfo&, const String&); > > Why not make send const?
If const, it was building because MessageSender::send() is not marked as const.
Chris Dumez
Comment 6
2019-12-10 12:36:33 PST
Created
attachment 385296
[details]
Patch
Chris Dumez
Comment 7
2019-12-10 12:42:27 PST
(In reply to Chris Dumez from
comment #5
)
> Comment on
attachment 385292
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=385292&action=review
> > >> Source/WebKit/Platform/IPC/MessageSender.h:83 > >> + messageSenderConnection()->sendWithAsyncReply(WTFMove(message), WTFMove(completionHandler), destinationID, sendOptions); > > > > What if the connection is null? This should probably call sendMessage like AuxiliaryProcessProxy::sendWithAsyncReply does. > > Ok, I will look into this. > > >> Source/WebKit/UIProcess/WebPageProxy.h:511 > >> + void systemPreviewActionTriggered(const WebCore::SystemPreviewInfo&, const String&); > > > > Why not make send const? > > If const, it was building because MessageSender::send() is not marked as > const.
it was *NOT* building
Chris Dumez
Comment 8
2019-12-10 14:29:46 PST
Comment on
attachment 385296
[details]
Patch Clearing flags on attachment: 385296 Committed
r253346
: <
https://trac.webkit.org/changeset/253346
>
Chris Dumez
Comment 9
2019-12-10 14:29:48 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2019-12-10 14:30:59 PST
<
rdar://problem/57808886
>
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