Bug 86864 - [EFL] EFL's DRT needs to print information about received Web Intents
Summary: [EFL] EFL's DRT needs to print information about received Web Intents
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on: 85364
Blocks: 86868
  Show dependency treegraph
 
Reported: 2012-05-18 09:58 PDT by Chris Dumez
Modified: 2012-05-22 13:34 PDT (History)
7 users (show)

See Also:


Attachments
Patch (12.47 KB, patch)
2012-05-22 01:43 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (12.42 KB, patch)
2012-05-22 05:10 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (12.39 KB, patch)
2012-05-22 06:16 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-05-18 09:58:20 PDT
EFL's DRT needs to print information about received Web Intents. This is needed by the following test cases:
  webintents/web-intents-obj-constructor.html
  webintents/web-intents-failure.html
  webintents/web-intents-invoke-port.html
  webintents/web-intents-invoke.html
  webintents/web-intents-reload.html = TEXT
  webintents/web-intents-reply.html = TEXT

The output looks like:
Received Web Intent: action=action1 type=text/plain
Received Web Intent: action=action1 type=text/plain+explicit
Explicit intent service: http://explicit.com/
Received Web Intent: action=action1 type=text/plain+extras
Extras[a] = b
Received Web Intent: action=action1 type=text/plain+port
Have 1 ports
Comment 1 Chris Dumez 2012-05-22 01:43:25 PDT
Created attachment 143229 [details]
Patch
Comment 2 WebKit Review Bot 2012-05-22 01:45:59 PDT
Attachment 143229 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'LayoutTests/ChangeLog', u'La..." exit_code: 1
LayoutTests/platform/efl/test_expectations.txt:119:  fast/events/show-modal-dialog-onblur-onfocus.html is also in a Skipped file.  [test/expectations] [5]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2012-05-22 01:49:51 PDT
Style issue is unrelated to this patch and will be addressed in Bug 87103.
Comment 4 Chris Dumez 2012-05-22 05:10:56 PDT
Created attachment 143281 [details]
Patch

Reupload the patch to get a green style bubble.
Comment 5 Chris Dumez 2012-05-22 06:16:37 PDT
Created attachment 143291 [details]
Patch

Fix a few style nits reported by Rakuco on IRC.
Comment 6 Raphael Kubo da Costa (:rakuco) 2012-05-22 06:20:12 PDT
Comment on attachment 143291 [details]
Patch

Looks fine, thanks.
Comment 7 Adam Barth 2012-05-22 10:11:54 PDT
Comment on attachment 143291 [details]
Patch

All the manual memory management looks really fragile.  I don't know enough about EFL to know whether it's correct.
Comment 8 Chris Dumez 2012-05-22 10:18:32 PDT
abarth: There is unfortunately no reviewer with deep knowledge of EFL. Rakuco says the EFL part looks good to him and he is our reference. I don't see how I can avoid manual memory management here: I need to use the EFL types and C style.
Comment 9 Adam Barth 2012-05-22 10:20:50 PDT
Comment on attachment 143291 [details]
Patch

Ok.  The intents-related parts look fine.  If the EFL-related bits are fine, then we should be good to go.
Comment 10 WebKit Review Bot 2012-05-22 10:42:18 PDT
Comment on attachment 143291 [details]
Patch

Clearing flags on attachment: 143291

Committed r118000: <http://trac.webkit.org/changeset/118000>
Comment 11 WebKit Review Bot 2012-05-22 10:42:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Thiago Marcos P. Santos 2012-05-22 11:21:32 PDT
The following tests are failing after this change:

webintents/web-intents-api.html = TEXT
webintents/web-intents-invoke.html = TEXT
webintents/web-intents-reload.html = TEXT

Br,

Your gardener in duty.
Comment 13 Chris Dumez 2012-05-22 11:26:39 PDT
Thiago: Based on the output on the bot, it appears it does not have the WEB_INTENTS flags enabled still. However, my patch enables it by default on EFL port and it works just fine on my machine. I think a clean build might be needed on the bot? Is it possible?
Comment 14 Chris Dumez 2012-05-22 12:04:56 PDT
False alarm. Removing the CMake cache on the bot and building again fixed the issue. The web intents tests are now passing, as expected.
Comment 15 Greg Billock 2012-05-22 13:34:21 PDT
Awesome! :-)

(In reply to comment #14)
> False alarm. Removing the CMake cache on the bot and building again fixed the issue. The web intents tests are now passing, as expected.