- From: Dave Raggett <dsr@w3.org>
- Date: Tue, 21 Feb 2012 14:56:54 +0000
- To: Paul Kinlan <paulkinlan@google.com>
- CC: "public-web-intents@w3.org" <public-web-intents@w3.org>
On 21/02/12 13:48, Paul Kinlan wrote: >> What is responsible for selecting the photo to share? >> >> a. the current web page that invokes the share intent >> b. the user selected photo sharing service >> >> As far as I can tell, the Google proposal is for (b) as I haven't found >> any mention of the API for passing a photo to a photo sharing site. > > It is (a) - The current page passes the data to the photo sharing > service in the intent object. Hi Paul, Thanks for the swift answer. I believe that you are saying that the intent object is cloned and passed in memory to the browser context for the service page. In other words, the object is passed locally, and not via the website's server. Is this also the same in reverse when the service page sends a response to the requesting page? You mention the structured structured clone algorithm - can you please point me to the definition you are using? I am having a little difficultly finding all the details. Where is the intent object formally defined? I was expecting something along the lines of the definitions in the HTML5 spec. Is the data transferred always identified by a MIME type? If so, what type do you use when the data is actually a URL? text/url seems plausible, but see http://filext.com/file-extension/URL for a list of alternatives. How is the intent object received by the service page? I think it is passed as the argument to the onintent method on document.body, or is that just Ian Hickson's proposal? Likewise how does the service page send the response? Ian suggests using postMessage on the port obtained from the onintent event. Is the service page expected to close itself, whether it is a new window, a new tab or inlined in an iframe in the original page? I wasn't able to find the details on webintents.org, but I could have easily have missed something. There is nothing like doing an implementation to throw up questions about proposals! :-) Many thanks. -- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
Received on Tuesday, 21 February 2012 14:57:23 UTC