W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: Updates to File API

From: Jian Li <jianli@chromium.org>
Date: Fri, 11 Jun 2010 11:08:24 -0700
Message-ID: <AANLkTik_KYyfyoD3gr_-MA1Oi_6rNRB9yV_-bVqhfli3@mail.gmail.com>
To: Adrian Bateman <adrianba@microsoft.com>
Cc: Jonas Sicking <jonas@sicking.cc>, "arun@mozilla.com" <arun@mozilla.com>, Web Applications Working Group WG <public-webapps@w3.org>, public-device-apis <public-device-apis@w3.org>
One benefit of using the encoded origin is to do the security origin check
in place, instead of resorting to a centralized authority, esp. under
multi-process architecture. Considering getting and checking the origin
before hitting the cache for the blob.url item.


On Fri, Jun 11, 2010 at 9:09 AM, Adrian Bateman <adrianba@microsoft.com>wrote:

> On Wednesday, June 02, 2010 5:35 PM, Jonas Sicking wrote:
> > On Wed, Jun 2, 2010 at 5:26 PM, Arun Ranganathan <arun@mozilla.com>
> wrote:
> > > On 6/2/10 5:06 PM, Jian Li wrote:
> > >> In addition,
> > >> we're thinking it will probably be a good practice to encode the
> security
> > >> origin in the blob URL scheme, like blobdata:
> > >> http://example.com/33c6401f-8779-4ea2-9a9b-1b725d6cd50b. This will
> make
> > >> doing the security origin check easier when a page tries to access the
> > >> blob
> > >> url that is created in another process, under multi-process
> architecture.
> > >
> > > This is a good suggestion.  I particularly like the idea of encoding
> the
> > > origin as part of the scheme.
> >
> > Though we want to avoid introducing the concept of nested schemes to
> > the web. While mozilla already uses nested schemes (jar:http://...
> > and  view-source:http://...) I know others, in particular Apple, have
> > expressed a dislike for this in the past. And with good reason, it's
> > not easy to implement and has been a source of numerous security bugs.
> > That said, it's certainly possible.
>
> It's not clear to me the benefit of encoding the origin into the URL. Do we
> expect script to parse out the origin and use it? Even in a multi-process
> architecture there's presumably some central store of issued URLs which will
> need to store origin information as well as other things?
>
> Cheers,
>
> Adrian
>
Received on Friday, 11 June 2010 18:08:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:39 GMT