RESOLVED FIXED 101293
[chromium] Expose CustomEvent through WebDOMCustomEvent.
https://bugs.webkit.org/show_bug.cgi?id=101293
Summary [chromium] Expose CustomEvent through WebDOMCustomEvent.
Sadrul Habib Chowdhury
Reported 2012-11-05 19:07:20 PST
[chromium] Expose CustomEvent through WebDOMCustomEvent.
Attachments
Patch (6.80 KB, patch)
2012-11-05 19:10 PST, Sadrul Habib Chowdhury
no flags
Patch (6.69 KB, patch)
2012-11-09 11:41 PST, Sadrul Habib Chowdhury
no flags
Sadrul Habib Chowdhury
Comment 1 2012-11-05 19:10:06 PST
WebKit Review Bot
Comment 2 2012-11-05 19:16:35 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Sadrul Habib Chowdhury
Comment 3 2012-11-05 19:29:46 PST
Hi! This WebDOMCustomEvent is used for browser-plugin event dispatching. The chromium CL that uses this: http://codereview.chromium.org/11368071/
Adam Barth
Comment 4 2012-11-05 22:50:10 PST
Comment on attachment 172469 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=172469&action=review > Source/WebKit/chromium/src/WebDOMCustomEvent.cpp:49 > + ScriptValue scriptValue = ScriptValue::deserialize(ScriptState::current(), serializedScriptValue.get()); > + unwrap<CustomEvent>()->initCustomEvent(type, canBubble, cancelable, scriptValue); This would be better if we could give the SerializedScriptValue to the CustomEvent and have it deserialize it when constructing the JavaScript wrapper. That way we'll get a different deserialization for each world that has an event listener.
Sadrul Habib Chowdhury
Comment 5 2012-11-06 07:38:17 PST
Comment on attachment 172469 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=172469&action=review >> Source/WebKit/chromium/src/WebDOMCustomEvent.cpp:49 >> + unwrap<CustomEvent>()->initCustomEvent(type, canBubble, cancelable, scriptValue); > > This would be better if we could give the SerializedScriptValue to the CustomEvent and have it deserialize it when constructing the JavaScript wrapper. That way we'll get a different deserialization for each world that has an event listener. Addressed in https://bugs.webkit.org/show_bug.cgi?id=101348 If that looks good and lands, I will update this patch accordingly. Thanks!
Sadrul Habib Chowdhury
Comment 6 2012-11-09 11:41:19 PST
Adam Barth
Comment 7 2012-11-09 11:48:21 PST
Comment on attachment 173343 [details] Patch This looks good.
WebKit Review Bot
Comment 8 2012-11-09 13:54:22 PST
Comment on attachment 173343 [details] Patch Attachment 173343 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14786312
Sadrul Habib Chowdhury
Comment 9 2012-11-09 16:21:39 PST
Comment on attachment 173343 [details] Patch The cq- from the bot happened since the patch this depends on hadn't landed yet. But now that that has landed, requesting cq
WebKit Review Bot
Comment 10 2012-11-09 17:52:46 PST
Comment on attachment 173343 [details] Patch Rejecting attachment 173343 [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: ediaControlsChromium.cpp:348: error: enumeration value 'MediaClosedCaptionsContainer' not handled in switch Source/WebCore/rendering/RenderMediaControlsChromium.cpp:348: error: enumeration value 'MediaClosedCaptionsTrackList' not handled in switch CXX(target) out/Release/obj.target/webcore_rendering/Source/WebCore/rendering/RenderTheme.o make: *** [out/Release/obj.target/webcore_rendering/Source/WebCore/rendering/RenderMediaControlsChromium.o] Error 1 make: *** Waiting for unfinished jobs.... Full output: http://queues.webkit.org/results/14788353
Sadrul Habib Chowdhury
Comment 11 2012-11-09 17:56:39 PST
Comment on attachment 173343 [details] Patch The failure is not caused by this CL :(
Adam Barth
Comment 12 2012-11-11 15:13:14 PST
That's true, but this one does: Source/WebKit/chromium/src/WebDOMCustomEvent.cpp: In member function 'void WebKit::WebDOMCustomEvent::initCustomEvent(const WebKit::WebString&, bool, bool, const WebKit::WebSerializedScriptValue&)': Source/WebKit/chromium/src/WebDOMCustomEvent.cpp:48: error: no matching function for call to 'WebCore::CustomEvent::initCustomEvent(const WebKit::WebString&, bool&, bool&, WebCore::SerializedScriptValue*)' Source/WebCore/dom/CustomEvent.h:54: note: candidates are: void WebCore::CustomEvent::initCustomEvent(const WTF::AtomicString&, bool, bool, const WebCore::ScriptValue&)
WebKit Review Bot
Comment 13 2012-11-11 16:12:36 PST
Comment on attachment 173343 [details] Patch Clearing flags on attachment: 173343 Committed r134177: <http://trac.webkit.org/changeset/134177>
WebKit Review Bot
Comment 14 2012-11-11 16:12:40 PST
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.