Summary: | [Chromium] Make it possible to create and dispatch a message event through chromium API | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dave Michael <dmichael> | ||||||||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | cmarcelo, darin, dslomov, fishd, levin, webkit.review.bot | ||||||||||
Priority: | P2 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Attachments: |
|
Description
Dave Michael
2011-10-12 14:11:43 PDT
Created attachment 110742 [details]
Patch
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API. This is to support 'PostMessage' for the Pepper plugin API. We currently use a simple scripting approach, but it's very limited. This is a first step to allow me to create an Event in the Chromium renderer and dispatch it to JavaScript. Here's the corresponding Chromium bug: http://code.google.com/p/chromium/issues/detail?id=82604 Comment on attachment 110742 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=110742&action=review API changes LGTM modulo the nit. > Source/WebKit/chromium/public/WebDOMMessageEvent.h:48 > + WEBKIT_EXPORT void initMessageEvent(const WebString& type, bool canBubble, bool cancelable, const WebSerializedScriptValue& message_data, const WebString& origin, const WebFrame& sourceFrame, const WebString& lastEventId, const WebMessagePortChannelArray& webChannels); nit: message_data -> messageData > Source/WebKit/chromium/src/PlatformMessagePortChannel.cpp:239 > + return m_localPort && m_localPort->hasPendingActivity(); I'm not super familiar with this code. It would be good to get someone like levin@chromium.org to look over this patch too. +levin@chromium.org: Dave, it'd be great to get your eyes on this one too. Created attachment 110858 [details]
Patch
Comment on attachment 110858 [details]
Patch
Please fix the include sorting and then we can get this landed.
Created attachment 112246 [details]
Patch
Comment on attachment 112246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=112246&action=review > Source/WebKit/chromium/ChangeLog:5 > + Removed messageChannels parameter, since it's hard to get right and I don't need it. Changed message_data->messageData. Reordered includes. In general you don't need interpatch info here. Comment on attachment 112246 [details] Patch Rejecting attachment 112246 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: omium/src/PlatformMessagePortChannel.cpp patching file Source/WebKit/chromium/src/WebDOMEvent.cpp Hunk #1 succeeded at 69 (offset 3 lines). patching file Source/WebKit/chromium/src/WebDOMMessageEvent.cpp patching file Source/WebKit/chromium/src/WebDocument.cpp Hunk #2 succeeded at 199 with fuzz 1 (offset 9 lines). patching file Source/WebKit/chromium/src/WebNode.cpp Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'David Levin', u'--force']" exit_code: 1 Full output: http://queues.webkit.org/results/10210007 Your patch didn't apply. Please update your tree, resolve any conflicts and upload a new patch. Created attachment 112342 [details]
Patch
Comment on attachment 112342 [details] Patch Rejecting attachment 112342 [details] from commit-queue. dmichael@chromium.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py. - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights. Comment on attachment 112342 [details] Patch Clearing flags on attachment: 112342 Committed r98381: <http://trac.webkit.org/changeset/98381> All reviewed patches have been landed. Closing bug. |