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

Re: [IndexedDB] Origins and document.domain

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 20 Jun 2012 09:37:14 +0200
Message-ID: <CADnb78h5zXd1Hj31h0oinVA2H84m2Gce_wmA12==vo29JBmEUg@mail.gmail.com>
To: Kyle Huey <me@kylehuey.com>
Cc: Web Applications Working Group WG <public-webapps@w3.org>
On Wed, Jun 20, 2012 at 6:06 AM, Kyle Huey <me@kylehuey.com> wrote:
> By my reading, the spec does not clearly specify what the 'origin' should
> be.  IDBFactory.open/deleteDatabase say "Let origin be the origin of the
> IDBEnvironment used to access this IDBFactory."  The IDL states "Window
> implements IDBEnvironment;"  The HTML5 spec, as far as I can tell, does not
> define the concept of an origin for a window, but only for a document.

Window/Document do effectively have a 1-1 relationship (unless you
navigate) but making it more explicit would not hurt probably.

> There is another related question here: how should IndexedDB behave in the
> presence of modifications to document.domain?

Since it is talking about the origin and not the effective script
origin (and it shouldn't, as Adam indicates) it has no effect.

Anne — Opera Software
Received on Wednesday, 20 June 2012 07:37:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:34 UTC