Bug 100342 - [WK2] Use per destination ID message receivers for DownloadProxy.
Summary: [WK2] Use per destination ID message receivers for DownloadProxy.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Byungwoo Lee
URL:
Keywords:
Depends on:
Blocks: 100310
  Show dependency treegraph
 
Reported: 2012-10-25 00:13 PDT by Byungwoo Lee
Modified: 2012-10-25 18:03 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.35 KB, patch)
2012-10-25 00:26 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff
Patch (4.37 KB, patch)
2012-10-25 02:51 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Byungwoo Lee 2012-10-25 00:13:22 PDT
There is below assertion after r132386 when dispatching ipc message about DownloadProxy.

ASSERTION FAILED: !decoder.destinationID()
/home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/Source/WebKit2/Platform/CoreIPC/MessageReceiverMap.cpp(79) : bool CoreIPC::MessageReceiverMap::dispatchMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&)

To fix the assertion problem,
adding/removing messageReceiver for DownloadProxy need to use new addMessageReceiver() function with downloadID for destinationID parameter.
Comment 1 Byungwoo Lee 2012-10-25 00:26:49 PDT
Created attachment 170569 [details]
Patch
Comment 2 Kenneth Rohde Christiansen 2012-10-25 00:40:37 PDT
Comment on attachment 170569 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=170569&action=review

> Source/WebKit2/ChangeLog:8
> +        Per destination ID message receivers are proposed at r132386.

in r... not at

> Source/WebKit2/ChangeLog:10
> +        so the messages should be handled by per destination ID message receivers.

by per sounds weird. by?
Comment 3 Byungwoo Lee 2012-10-25 00:44:15 PDT
(In reply to comment #2)
> (From update of attachment 170569 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=170569&action=review
> 
> > Source/WebKit2/ChangeLog:8
> > +        Per destination ID message receivers are proposed at r132386.
> 
> in r... not at
Ok. I'll change it.

> 
> > Source/WebKit2/ChangeLog:10
> > +        so the messages should be handled by per destination ID message receivers.
> 
> by per sounds weird. by?
How about this?
'so the messages should be handled by the message receivers that is newly proposed.'
Comment 4 Chris Dumez 2012-10-25 00:48:50 PDT
Comment on attachment 170569 [details]
Patch

Looks reasonable to me but it would be nice if Andersca took a look.
Comment 5 Byungwoo Lee 2012-10-25 02:51:09 PDT
Created attachment 170598 [details]
Patch
Comment 6 Byungwoo Lee 2012-10-25 02:53:04 PDT
Applied the comments from kenneth.
Comment 7 Anders Carlsson 2012-10-25 08:45:16 PDT
Comment on attachment 170598 [details]
Patch

Looks great! r=me.
Comment 8 Byungwoo Lee 2012-10-25 17:19:31 PDT
Comment on attachment 170598 [details]
Patch

Thank you for the review :)
Comment 9 WebKit Review Bot 2012-10-25 18:03:05 PDT
Comment on attachment 170598 [details]
Patch

Clearing flags on attachment: 170598

Committed r132548: <http://trac.webkit.org/changeset/132548>
Comment 10 WebKit Review Bot 2012-10-25 18:03:10 PDT
All reviewed patches have been landed.  Closing bug.