RESOLVED FIXED 70580
[Chromium] Implement MessagePort transfer in chromium port of webkit
https://bugs.webkit.org/show_bug.cgi?id=70580
Summary [Chromium] Implement MessagePort transfer in chromium port of webkit
Dmitry Lomov
Reported 2011-10-20 21:47:15 PDT
SerializedScriptValue should support transferring message ports
Attachments
Fix (16.03 KB, patch)
2011-10-20 21:50 PDT, Dmitry Lomov
levin: review+
levin: commit-queue-
Fixes in tests + testdata for JSC (18.44 KB, patch)
2011-10-21 16:00 PDT, Dmitry Lomov
no flags
Dmitry Lomov
Comment 1 2011-10-20 21:50:58 PDT
David Levin
Comment 2 2011-10-20 23:16:31 PDT
Comment on attachment 111901 [details] Fix View in context: https://bugs.webkit.org/attachment.cgi?id=111901&action=review Looks good (except I just want to understand the wrap issue before I r+). > LayoutTests/fast/events/resources/message-port-multi.js:58 > + if(event.ports && event.ports.length > 0 && event.ports[0] === event.data.port) add space after if > LayoutTests/fast/events/resources/message-port-multi.js:79 > + testFailed("Unexpexcted message " + event.data); typo: Unexpexcted > Source/WebCore/bindings/v8/SerializedScriptValue.cpp:1065 > + uint32_t messagePortIndex; indent is incorrect here and below > Source/WebCore/bindings/v8/SerializedScriptValue.cpp:1801 > + *object = V8MessagePort::wrap(m_transferredMessagePorts->at(index).get()); It is unintuitive to me that both sides of this use "wrap". (line 598 and 1801). It feels like one of them should be unwrap.
Dmitry Lomov
Comment 3 2011-10-20 23:18:14 PDT
(In reply to comment #2) > It is unintuitive to me that both sides of this use "wrap". (line 598 and 1801). It feels like one of them should be unwrap. On both sides we go from MessagePort (webkit object) to corresponding V8 object. Hence the wrap on both ends.
David Levin
Comment 4 2011-10-20 23:19:40 PDT
Comment on attachment 111901 [details] Fix ok. Please fix up the nits mentioned before landing. Thanks!
Dmitry Lomov
Comment 5 2011-10-21 16:00:33 PDT
Created attachment 112039 [details] Fixes in tests + testdata for JSC
WebKit Review Bot
Comment 6 2011-10-21 17:37:23 PDT
Comment on attachment 112039 [details] Fixes in tests + testdata for JSC Clearing flags on attachment: 112039 Committed r98175: <http://trac.webkit.org/changeset/98175>
WebKit Review Bot
Comment 7 2011-10-21 17:37:28 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.