RESOLVED FIXED Bug 92228
[WK2][WTR] LayoutTestController.deliverWebIntent() needs to be implemented
https://bugs.webkit.org/show_bug.cgi?id=92228
Summary [WK2][WTR] LayoutTestController.deliverWebIntent() needs to be implemented
Chris Dumez
Reported 2012-07-25 01:19:13 PDT
The following web intents test rely on LayoutTestController.deliverWebIntent(): webintents/web-intents-delivery.html The tests is now failing on WebKit2 WTR because LayoutTestController.deliverWebIntent() is undefined.
Attachments
Patch (10.02 KB, patch)
2012-07-25 04:01 PDT, Chris Dumez
webkit-ews: commit-queue-
Patch (10.05 KB, patch)
2012-07-25 04:53 PDT, Chris Dumez
andersca: review-
andersca: commit-queue-
Patch (10.88 KB, patch)
2012-07-25 11:49 PDT, Chris Dumez
no flags
Patch (10.44 KB, patch)
2012-07-25 13:41 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2012-07-25 04:01:56 PDT
Early Warning System Bot
Comment 2 2012-07-25 04:46:25 PDT
Chris Dumez
Comment 3 2012-07-25 04:53:22 PDT
Created attachment 154326 [details] Patch Should fix build on other ports than EFL.
Anders Carlsson
Comment 4 2012-07-25 10:32:09 PDT
Comment on attachment 154326 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154326&action=review > Source/WebKit2/UIProcess/API/C/WKIntentData.cpp:48 > +WKIntentDataRef WKIntentDataCreate(WKIntentData wkIntentData) Please make WKIntentDataCreate take the action, type and data as individual parameters instead of using a struct. > Source/WebKit2/UIProcess/API/C/WKIntentData.h:40 > +struct WKIntentData { > + WKStringRef action; > + WKStringRef type; > + WKSerializedScriptValueRef data; > +}; > +typedef struct WKIntentData WKIntentData; Having a struct with public members like this is bad from a memory management standpoint.
Chris Dumez
Comment 5 2012-07-25 11:49:46 PDT
Created attachment 154408 [details] Patch Use a WKDictionary instead of a structure as initialization argument, as discussed with andersca on IRC. I'm trying to avoid using distinct function arguments because we may choose to pass more initialization parameters in the future. Using a dictionary is more easily extensible and would not break API compatibility.
Chris Dumez
Comment 6 2012-07-25 13:41:05 PDT
Created attachment 154430 [details] Patch Rebase on master.
WebKit Review Bot
Comment 7 2012-07-27 13:10:35 PDT
Comment on attachment 154430 [details] Patch Clearing flags on attachment: 154430 Committed r123911: <http://trac.webkit.org/changeset/123911>
WebKit Review Bot
Comment 8 2012-07-27 13:10:40 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.