Extend semantics of Page Visibility API to reflect desktop window foreground status |
||||||
Issue descriptionUserAgent: 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:
,
May 25 2017
,
Jun 8 2017
,
Jul 14 2017
,
Nov 15 2017
Shubhie, are you the right owner here?
,
Feb 28 2018
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?
,
Mar 1 2018
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by ligim...@chromium.org
, May 24 2017