- From: Jon Ferraiolo <jferrai@us.ibm.com>
- Date: Fri, 23 May 2008 06:17:36 -0700
- To: Thomas Roessler <tlr@w3.org>
- Cc: Marcos Caceres <marcosscaceres@gmail.com>, public-appformats@w3.org
- Message-ID: <OF68AF0D3E.D75BAEA2-ON88257452.004853D9-88257452.0049060D@us.ibm.com>
Hi Thomas, Excellent progress on this question. I have been in and around similar discussion about how to reference into a ZIP container for years, but not with DOM experts, so this is the first time I heard anyone mention the requirement of having to absolutize any relative URI references. Yes, that's an important concern. Regarding your comment: ------- > I like your "zip://" proposal:) I don't. I think that anything that encourages special-purpose URIs (including either absolute or file: URIs) for widget *authoring* is a total anti-pattern and should be called out as one. ------- I'm not trying to defend 'zip:' or disparage 'widget:' or any other alternative, but I don't understand what you are saying. What is the difference between the original content of the ZIP using URL references that say 'widget:/images/image1.jpg' versus 'zip:/images/image1.jpg'? Is your complaint against including ZIP-package-relative URLs in the original content (whether it is 'widget:' or 'zip:'), or is your complaint against using a 'zip:' protocol in the original content instead of a 'widget:' protocol? Jon Thomas Roessler <tlr@w3.org> To 05/23/08 05:22 AM Marcos Caceres <marcosscaceres@gmail.com> cc Jon Ferraiolo/Menlo Park/IBM@IBMUS, public-appformats@w3.org Subject Re: [widgets] 'widget:' protocol On 2008-05-23 09:16:01 +1000, Marcos Caceres wrote: > The purpose is to stop implementations from using 'file://', and > hence, addressing anything on the file system. In the config doc, > authors are still free to use either relative or absolute > references (but not full URIs or the widget protocol) to address > resources inside a package. Using the widget protocol inside a > start file will have no effect (ie. authors cannot address > resources inside another widget). Arve B and I were just talking in IRC about all this. My point was that anything that leads to special-case URI references in widgets which you can't evaluate when running the widget *from* a file:// URI will make development a larger pain -- one of the promises here is, after all, that you can reuse Web development tools for widget programming. On the other hand, just leaving relative URI references in the DOM is simply non-starter. So the main benefit for the widget: protocol is really that it effectively is a way to - absolutize relative URI references for DOM and possibly other purposes - without divulging the real origin to JavaScript code that's running I think that's useful, and there might be usefulness to this pattern for, say, running locally saved Web pages as well. You don't necessarily want to run these with a file URI, but at the same time, you need to absolutize somehow. The next point in the discussion was then a question around sandboxed iframes running with globally unique origins, and understanding the implications of location.href being unrelated to the origin that a script runs with for the same origin policy's purposes. But that's a topic for more thought and another mailing list. > I like your "zip://" proposal:) I don't. I think that anything that encourages special-purpose URIs (including either absolute or file: URIs) for widget *authoring* is a total anti-pattern and should be called out as one. -- Thomas Roessler, W3C <tlr@w3.org>
Attachments
- image/gif attachment: graycol.gif
- image/gif attachment: pic03977.gif
- image/gif attachment: ecblank.gif
Received on Friday, 23 May 2008 13:52:41 UTC