Intent to Implement & Ship: [Picture-in-Picture] Expose pictureInPictureWindow in leavepictureinpicture event

103 views
Skip to first unread message

François Beaufort

unread,
Jun 18, 2020, 4:17:55 AM6/18/20
to blink-dev

Contact emails


fbea...@chromium.org, mlam...@chromium.org


Spec


Specification: https://w3c.github.io/picture-in-picture/ 

PR: https://github.com/w3c/picture-in-picture/pull/189

Summary


Allow web developers to access pictureInPictureWindow in leavepictureinpicture event.


Explainer


As raised by Mozilla folks at https://github.com/w3c/picture-in-picture/issues/188, we should provide a way to access the Picture-in-Picture window when user-agent leaves Picture-in-Picture. This is why we’re adding a pictureInPictureWindow attribute to the leavepictureinpicture event.


Motivation


Web developers won’t have to keep a global reference to the pictureInPictureWindow object that was available already in the enterpictureinpicture event.


Link to “Intent to Ship” blink-dev discussion


https://groups.google.com/a/chromium.org/d/msg/blink-dev/ibVPbqBQapU/eMblkidrAgAJ


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?


The feature will be supported on all platforms (except Android WebView).


Interoperability and Compatibility
We're adding a new attribute to the leavepictureinpicture event, so it's unlikely web developers already rely on an undefined value.


Edge: No signals

Firefox: Positive signals

Safari: Public support

Web developers: No signals


Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.

Web platform tests will be updated and available at https://wpt.fyi/results/picture-in-picture.


Feature dashboard

https://www.chromestatus.com/feature/5719215132639232

Yoav Weiss

unread,
Jun 18, 2020, 4:20:34 AM6/18/20
to François Beaufort, blink-dev
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEZxfGOxrX%2BtJVK5p1OUr9gAgTUk38izYc1UYkgAWKZuSV4D%3Dw%40mail.gmail.com.

Daniel Bratell

unread,
Jun 18, 2020, 6:47:06 AM6/18/20
to Yoav Weiss, François Beaufort, blink-dev

LGTM2

Note that when ask for the opinion of other engines (to learn if a change could turn into a long term incompatibility), we're usually looking for something more official. Chris wrote some about this not too long ago. In this case I'm ok with this level of support though since it's a minor change and I see no reason it won't just be added to all engines as soon as it's convenient.

/Daniel

Mike West

unread,
Jun 18, 2020, 3:21:34 PM6/18/20
to blink-dev, Daniel Bratell, blink-dev, yo...@yoav.ws, beaufort...@gmail.com
LGTM3.
Reply all
Reply to author
Forward
0 new messages