W3C home > Mailing lists > Public > public-web-perf@w3.org > September 2011

Re: [PageVisibility] What should the visibility API return on documents without an associated Window?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 Sep 2011 20:59:06 -0400
Message-ID: <4E83C2DA.2040508@mit.edu>
To: Arvind Jain <arvind@google.com>
CC: public-web-perf@w3.org
On 9/28/11 4:28 PM, Arvind Jain wrote:
> I'm not sure I understand. If the page has no window, how does any
> other window.* property work?

It doesn't, but the visibility API is on Document, not Window.

As a concrete example:

   var xhr = new XMLHttpRequest();
   // do a fetch with it
   var doc = xhr.responseXML;

what gets alerted?

Received on Thursday, 29 September 2011 00:59:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:31 UTC