W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [XHR] Need to define the behavior when the Window the XHR is created from does not have an associated document

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 14 Dec 2012 12:40:34 -0500
Message-ID: <50CB6492.9070100@mit.edu>
To: Anne van Kesteren <annevk@annevk.nl>
CC: Jungkee Song <jungkee.song@samsung.com>, public-webapps@w3.org
On 12/14/12 11:54 AM, Anne van Kesteren wrote:
> On Fri, Dec 14, 2012 at 5:30 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> But note that you can get the same effect by just navigating the a browsing
>> context, then calling a function that was defined in the no-longer-active
>> document, without worrying about browsers that have buggy open()
>> implementations.
> The specification deals with that by having xhr.open() throw.

Ah, indeed.  OK.

> I suppose the same would happen for the other case, since the associated
> Document object is no longer active.

Which other case?  The document.open() one?  In that case, there is no 
problem with the document per se; the only question is whether the XHR 
has an associated document object at all in that case...  and per spec 
not having one does NOT cause open() to throw.

Received on Friday, 14 December 2012 17:41:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:54 UTC