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: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 28 Sep 2011 17:33:50 -0700
Message-ID: <CA+c2ei8jfAP3sTFhmVZ9N88Yf45n+EyHbf+t34mHx_kxg5CZ8w@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, public-web-perf@w3.org
On Wed, Sep 28, 2011 at 1:31 PM, Ojan Vafai <ojan@chromium.org> wrote:
> On Wed, Sep 28, 2011 at 1:18 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>>
>> One option is to attempt to grovel around for a Window and then return the
>> state of its top level browsing context.
>>
>> Another is to just always return the same thing for documents without a
>> Window.
>>
>> Thoughts?
>
> There's no real use-case for having this API work with documents without a
> Window, right? We should do the simplest thing, i.e. we should always return
> hidden.

I agree, given that the contents of the document isn't actually
rendered, "hidden" seems like an appropriate value.

/ Jonas
Received on Thursday, 29 September 2011 00:34:47 UTC

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