News for hackers. Stuff that matters.
Re:Web Intents by neilk on Friday August 05, 2011 @04:49PM (#2851701)
Shouldn't this be handled by ordinary links with protocols?

"mailto:" is a protocol that is interpreted by the user agent, to launch the user's preferred mail client. We could also have "share:", to launch the user's preferred way of sharing things.

So why not this?

    <a href="share:http://sample.com/url/">Share this</a> 
It's a bit odd to have the protocol wrapping what looks like another protocol, but it's legal. One might even have the convention that an empty share means the current url. Then it would be just

    <a href="share:">Share this</a>.
Re:Web Intents by abraham on Friday August 05, 2011 @05:01PM (#2851750)
It breaks down when you need to pass rich data. Images, videos, and JSON for example.
Re:Web Intents by Someone on Saturday August 06, 2011 @01:40PM (#2854410)
What is not rich with http://sample.com/url/ ?

The URL could point to an image, a movie, a web page, JSON, etc. The only thing it does not make easy/practical is passing large data chunks inline.

Re:Web Intents by abraham on Saturday August 06, 2011 @01:45PM (#2854429)
That requires additional work from the Intent providers. They can no longer be pure JavaScript if they have to request data from other domains, it increases latency as you wait for requests to fetch the item to complete.
Re:Web Intents by Someone on Sunday August 07, 2011 @07:06AM (#2856392)
Why is it important that intent providers can be pure JavaScript? I would think most providers would be native programs or run in a browser.

As to the latency: if large data isn't available locally, someone will have to take a hit. I do not see why severing this to the provider would be problematic.

If it is available locally, I would hope that the intent provider can retrieve it from cache.

Also, deferring the loading enables optimizations. Suppose I see an image on example.com that I want to share using Flickr. If I send the URL to Flickr, it can retrieve the image from example.com using its fat Internet pipe. If, instead, I have to send the image, I have much more upstream data. Even at home, that can be problematic. Mobile, things are worse.