New issue
Advanced search Search tips

Issue 898495 link

Starred by 2 users

Issue metadata

Status: Available
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

Make sure page visibility interacts accordingly to Picture-in-Picture spec

Project Member Reported by fbeaufort@chromium.org, Oct 24

Issue description

The Page-Visibility specification defines a visibilityState attribute used to determine the visibility state of a top level browsing context. For the purpose of Picture-in-Picture, the visibilityState MUST always return "visible" when pictureInPictureElement is set and the Picture-in-Picture window is visible.


Please add web platform tests for this as well if possible.
 
Labels: -OS-Linux -OS-Windows -OS-Chrome -OS-Mac OS-Android
Owner: mlamouri@chromium.org
We only need to do this for Chrome Android.
We need to add tests for Desktop as well.
Regarding web platform tests, it looks like we need a test driver API to minimize window in order to test page visibility API behaviour.

See https://github.com/web-platform-tests/wpt/issues/10666 and https://github.com/web-platform-tests/wpt/pull/10751

```
Closed CL (not merged) has most of the work is done already
But we'll probably have to repeat some changes for ExecutorWebDriver, which we use for Chrome now, and it landed after these PRs were created.
```
An issue has been opened regarding these changes: https://github.com/WICG/picture-in-picture/issues/110

Sign in to add a comment