Re: [Widgets] URI Scheme revisited.... again

2008-10-24 Thread Marcos Caceres

Hi Mark,
Please see [1] for TAG discussion about WebApps proposal of widget URI
scheme. From what I got from the discussion, the TAG seems to agree
that we likely do need our own URI scheme. We just need to flesh out
our technical argument a little more. We are also going to try to
coordinate with the Open Document Format people as they also need
something very similar.

I again ask for your help in defining the scheme correctly, rather
than arguing against it.

[1] http://www.w3.org/2008/10/20-wam-minutes.html#item11

Kind regards,
Marcos

On Mon, Oct 13, 2008 at 4:59 PM, Mark Baker [EMAIL PROTECTED] wrote:
 On Mon, Oct 13, 2008 at 10:31 AM, Marcos Caceres
 [EMAIL PROTECTED] wrote:
 On Mon, Oct 13, 2008 at 5:08 AM, Mark Baker [EMAIL PROTECTED] wrote:
 On Fri, Oct 10, 2008 at 4:00 PM, Marcos Caceres
 [EMAIL PROTECTED] wrote:
 Ok, In one of my previous emails I said that this was a potential
 privacy/security issue:

 The reason we don't
 want to allow vendors to mint their own is that there are potential
 security and privacy issues related to URI schemes such as file:. For
 instance, because Dashboard uses file: it is very easy for me to
 work out what the username and home directory of a user on MacOsX by
 simply picking up any DOM node that contains a dereferenced URI (eg.
 by examining an img's src, I get something like
 file:///Users/marcos/Library/widget/Default.png).

 I'm no security/privacy expert, but this seems like an easy way to at
 least get someone's username (from which I may be able to  derive who
 they are, etc).  Also, if the implementation is crap and does not
 restrict file:// to the scope of the widget package (thankfully Apple
 does), then widgets could basically read any files on the hard drive.

 Sure, but standardizing on a URI scheme won't fix this, because one
 can guess URIs in any scheme.  Less opaque schemes like hierarchical
 ones are a little more susceptible of course, but it's a problem for
 all schemes.

 In the case of widgets, it's not a problem at all for the structure of
 the package to be guessed (as anyone can just decompress the widget
 locally anyway and take a look at it's directory structure; that is
 not the issue). What we don't want is a situation where the underlying
 operating system is also exposed.

 That is why we proposed the new scheme. I don't see how a scheme like
 widget://myWidget.wgt/path/to/file exposes anything about the
 underlying file system (apart from the name of the widget package)?
 Instead, file: exposes way too much IMO (i.e.
 file:///Users/marcos/Library/...! my username is exposed in the
 path, which  everyone can acknowledge is pretty a bad thing, no?).

 file:, despite the name, doesn't have to be mapped to the file system.
  Its scope could be limited in exactly the same way you've limited
 widget: there.  Similarly, ftp or http - even part of the space -
 *could* be mapped to the file system.  So the issue you're worried
 about has little to do with the URI scheme.

 I suspect implementors are familiar with this issue already, but if
 you like, you could point out that implementations should ensure that
 widgets can't access local resources that the implementation doesn't
 want them to access.

 We will of course point out that implementations should ensure that
 widgets can't access local resources. That is explicitly part of the
 requirement for the URI scheme.

 Good.

 Mark.




-- 
Marcos Caceres
http://datadriven.com.au



Re: [Widgets] URI Scheme revisited.... again

2008-10-24 Thread Mark Baker

On Fri, Oct 24, 2008 at 6:51 AM, Marcos Caceres
[EMAIL PROTECTED] wrote:
 Hi Mark,
 Please see [1] for TAG discussion about WebApps proposal of widget URI
 scheme. From what I got from the discussion, the TAG seems to agree
 that we likely do need our own URI scheme.

Hmm, have you read the minutes?  Obviously you were part of the
discussion and so perhaps something was said that didn't get minuted,
but it seems quite clear to me from those minutes that the TAG is
asking for more information, and that they were leaning away from a
new URI scheme until they get that information, e.g.;

Norm NW: My position is roughly in line with Noah's. If you're going
to allow these things to leak out, or if it's going to be valuable to
share them, then I think the logical thing to do would be to use http:
URIs in that case.

Norm ...And if you do that, I'd be highly motivated to see if it's
possible to use http: for all the names so that you don't need to
names.

Of course, that doesn't address my argument that even if they don't
leak out - which you indicated to me that they wouldn't - that the
scheme becomes an implementation detail.

Mark.



Re: New Progress draft (1.25)...

2008-10-24 Thread Garrett Smith

On Fri, Oct 24, 2008 at 5:51 AM, Jonas Sicking [EMAIL PROTECTED] wrote:
 Garrett Smith wrote:



 I agree. Not sure if that is what you want to do before or after getting the
 load/error/abort event though?

 I should mention that I'm not particularly married to having things one way
 or another. But I think we should have reasons for choosing.


Agree. Anyone who has another use case for loadend, please post up.

Garrett

 / Jonas

 /