New issue
Advanced search Search tips

Issue 725751 link

Starred by 6 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Extend semantics of Page Visibility API to reflect desktop window foreground status

Project Member Reported by rhenders@google.com, May 24 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. open an html document (window 0)
2. open a new window (window 1) and place it over window 0
3. verify that document.visibilityState = 'visible' in window 0

What is the expected behavior?
Page Visibility should report document.visibilityState = 'hidden' when the tab has no pixels visible (considering window layering).

What went wrong?
The Page Visibility API does not reflect window layer when reporting on desktop windows.  We propose the following behavior:

* When the tab has at least one pixel visible (considering window layering), then document.visibilityState = “visible”

* When the tab has no pixels visible (considering window layering), then document.visibilityState = “hidden”

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 58.0.3029.110  Channel: stable
OS Version: 
Flash Version:
 
Labels: Needs-Feedback Needs-Triage-M58
Can you provide us with a reproducible testcase for the ease of narrowing down the issue.

Comment 2 by jochen@chromium.org, May 25 2017

Components: -Blink>JavaScript Blink
Owner: igrigo...@chromium.org
Status: Assigned (was: Unconfirmed)
Components: -Blink Blink>PerformanceAPIs
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 14 2017

Labels: Hotlist-Google
Cc: igrigo...@chromium.org
Owner: panicker@chromium.org
Shubhie, are you the right owner here?
I'm actually not 100% sure we can do this across all window managers.

I believe Shubhie is the right owner here though: can you confirm?
Components: -Blink>PerformanceAPIs Blink>PageLifecycle

Sign in to add a comment