Bug 88340

Summary: [WK2] Add implementation for dispatchIntent in WebFrameLoaderClient
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, andersca, beidson, cgarcia, cmarcelo, gbillock, gustavo, kenneth, menard, mrobinson, rakuco, ryuan.choi, sam, webkit.review.bot, zoltan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 89007    
Bug Blocks: 88303    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
buildbot: commit-queue-
Patch
none
Patch
andersca: review-
Patch
none
Patch
kenneth: review+, webkit-ews: commit-queue-
Patch
none
Patch
none
Archive of layout-test-results from ec2-cq-03 none

Chris Dumez
Reported 2012-06-05 09:44:46 PDT
The dispatchIntent() method in WebFrameLoaderClient has currently no implementation. We need to implement it in order to bring support for Web Intents to WebKit2.
Attachments
Patch (29.31 KB, patch)
2012-06-05 10:08 PDT, Chris Dumez
no flags
Patch (29.29 KB, patch)
2012-06-05 10:26 PDT, Chris Dumez
no flags
Patch (29.27 KB, patch)
2012-06-05 10:30 PDT, Chris Dumez
buildbot: commit-queue-
Patch (31.18 KB, patch)
2012-06-05 10:51 PDT, Chris Dumez
no flags
Patch (32.25 KB, patch)
2012-06-05 23:35 PDT, Chris Dumez
andersca: review-
Patch (29.04 KB, patch)
2012-06-07 00:05 PDT, Chris Dumez
no flags
Patch (28.40 KB, patch)
2012-06-13 03:19 PDT, Chris Dumez
kenneth: review+
webkit-ews: commit-queue-
Patch (29.06 KB, patch)
2012-06-13 03:44 PDT, Chris Dumez
no flags
Patch (28.68 KB, patch)
2012-06-13 09:59 PDT, Chris Dumez
no flags
Archive of layout-test-results from ec2-cq-03 (656.07 KB, application/zip)
2012-06-13 13:45 PDT, WebKit Review Bot
no flags
Chris Dumez
Comment 1 2012-06-05 10:08:04 PDT
Chris Dumez
Comment 2 2012-06-05 10:26:58 PDT
Chris Dumez
Comment 3 2012-06-05 10:30:11 PDT
Created attachment 145832 [details] Patch Fix small indentation problem.
Build Bot
Comment 4 2012-06-05 10:38:27 PDT
Chris Dumez
Comment 5 2012-06-05 10:51:33 PDT
Created attachment 145839 [details] Patch Attempt to make ews-mac happy.
WebKit Review Bot
Comment 6 2012-06-05 10:53:41 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Greg Billock
Comment 7 2012-06-05 15:49:28 PDT
Comment on attachment 145839 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=145839&action=review > Source/WebKit2/UIProcess/WebIntentData.h:48 > + String title() const { return m_store.action; } I'd prefer keeping these as action/type. Type specifiers can include string literals as well as mime type specifiers, and 'title' is what we'll probably call the name of registered intent handlers.
Chris Dumez
Comment 8 2012-06-05 21:33:39 PDT
Comment on attachment 145839 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=145839&action=review >> Source/WebKit2/UIProcess/WebIntentData.h:48 >> + String title() const { return m_store.action; } > > I'd prefer keeping these as action/type. Type specifiers can include string literals as well as mime type specifiers, and 'title' is what we'll probably call the name of registered intent handlers. My bad. This method is supposed to be action() not title(). This is a copy/paste error on my part. Note that I had to rename the type() method to mimeType() because there is already a type() method inherited from APIObject. I know that according to the spec, this does not have to be a MIME type. Any other suggestion for the method name then?
Chris Dumez
Comment 9 2012-06-05 23:35:24 PDT
Created attachment 145944 [details] Patch - Rename title() method to action(): Was a bad copy/paste. - Rename mimeType() method to payloadType(): Since type() is already taken, I think it is better but feel free to suggest something better. - Add payload data, extras hashmap and suggestion URLs to IntentData (only MessagePorts are missing now but I'd like to do that in a separate patch)
Anders Carlsson
Comment 10 2012-06-06 13:23:07 PDT
Comment on attachment 145944 [details] Patch Why did you add the bundle API? We shouldn't add bundle API unless there is a clear need for it. Also, you need to bump the WKPageLoaderClient version.
Chris Dumez
Comment 11 2012-06-07 00:05:19 PDT
Created attachment 146213 [details] Patch Take Andersca's feedback into consideration, thanks.
Chris Dumez
Comment 12 2012-06-13 03:19:28 PDT
Created attachment 147273 [details] Patch Rebase on master and take into consideration feedback from Kenneth at Bug 88399.
Early Warning System Bot
Comment 13 2012-06-13 03:33:51 PDT
Chris Dumez
Comment 14 2012-06-13 03:44:03 PDT
Created attachment 147281 [details] Patch Should fix the qt-wk2 build.
WebKit Review Bot
Comment 15 2012-06-13 08:06:03 PDT
Comment on attachment 147281 [details] Patch Clearing flags on attachment: 147281 Committed r120209: <http://trac.webkit.org/changeset/120209>
WebKit Review Bot
Comment 16 2012-06-13 08:06:15 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 17 2012-06-13 09:05:20 PDT
Re-opened since this is blocked by 89007
Anders Carlsson
Comment 18 2012-06-13 09:07:31 PDT
This broke the Mac WK2 build - IntentData.h and .cpp were not added to the Xcode project and those includes were not surrounded by the correct #ifdefs.
Chris Dumez
Comment 19 2012-06-13 09:59:10 PDT
Created attachment 147349 [details] Patch Protect the header includes using #ifdefs, hopefully fixing the Mac build.
Chris Dumez
Comment 20 2012-06-13 11:44:56 PDT
Could someone please cq+ ?
WebKit Review Bot
Comment 21 2012-06-13 13:45:26 PDT
Comment on attachment 147349 [details] Patch Rejecting attachment 147349 [details] from commit-queue. New failing tests: animations/first-letter-play-state.html Full output: http://queues.webkit.org/results/12942974
WebKit Review Bot
Comment 22 2012-06-13 13:45:32 PDT
Created attachment 147403 [details] Archive of layout-test-results from ec2-cq-03 The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: ec2-cq-03 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Chris Dumez
Comment 23 2012-06-13 20:38:02 PDT
Comment on attachment 147349 [details] Patch The chromium test failure is unrelated. Setting cq? Flag again. Could someone please cq+?
WebKit Review Bot
Comment 24 2012-06-13 21:37:38 PDT
Comment on attachment 147349 [details] Patch Clearing flags on attachment: 147349 Committed r120278: <http://trac.webkit.org/changeset/120278>
WebKit Review Bot
Comment 25 2012-06-13 21:37:47 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.