Based on the teleconference last week, we had consensus on using document rather than window. Window suffers the issue of being the global namespace for variables; the risk of collision with an undeclared variable named 'visible' is high.
Developers can extend properties on Document as well, but it's less common. I recommend we go with document.visible and document.visibilityState.
If there are any explicit concerns with document.visible or document.visibilityState, please raise them now.
Thanks,
Jatinder
-----Original Message-----
From: public-web-perf-request@w3.org [mailto:public-web-perf-request@w3.org] On Behalf Of Arvind Jain
Sent: Thursday, May 12, 2011 10:52 PM
To: SigbjÃ¸rn Vik
Cc: public-web-perf@w3.org
Subject: Re: [Page Visibility] Spec Updates
Re. using Document vs. Window, do we have consensus on using Document?
Could folks express any concerns they may have with using Document?
Thanks,
Arvind
On Thu, May 12, 2011 at 1:09 AM, SigbjÃ¸rn Vik <sigbjorn@opera.com> wrote:
> On Wed, 11 May 2011 23:57:16 +0200, Karen Anderson (IE)
> <Karen.Anderson@microsoft.com> wrote:
>
>> Regarding the conversation around whether the visibilityState should
>> be PAGE_HIDDEN vs PAGE_VISIBLE in the case that the window is not
>> minimized but is fully obscured by another window: Â We all seem to
>> agree that this detection is hard and has odd meaning implications
>> for mobile or tablet devices, but furthermore, I brought up the following point on today's call.
>> Â Many, if not most, accessibility tools completely overlap the target
>> window. Â For example, magnifier applications demonstrate this. Â And
>> depending on the screen resolution, on-screen keyboards also have the
>> possible effect of covering the entire window. Â There could be other
>> scenarios as well. Â Given this, we should report visible for any
>> non-minimized window, obscured or not.
>
> The browser might have more information, particularily in the case of
> multiple tabs and/or windows it might know that a tab/window obscured
> by another tab/window is fully hidden, even though it is not
> minimized. The spec could leave it up to the browser with wording like the following:
> HIDDEN: Used when the browser is confident that no part of the page is
> visible to the user, for instance when the page is minimized or
> completely covered by another page. An explanation that being hidden
> by other applications might not indicate hidden to the user might also be needed.
>
>
> --
> SigbjÃ¸rn Vik
> Quality Assurance
> Opera Software
>
>