Picture-in-Picture Test Bench
Tests exit PiP behavior across browser/iframe/document destruction scenarios. See
#260
.
Video
PiP: inactive
Enter PiP
Exit PiP
Exit while inactive
Double exit (race)
Destruction Scenarios
Window / Document
Open popup + enter PiP there
Close popup window
iframe
Create iframe
Enter PiP in iframe
Remove iframe from DOM
Navigate iframe away
iframe — parent holds PictureInPictureWindow ref
Grab ref from iframe
Probe held ref
No held ref
Document navigation (this page)
Navigate this document
Reload page
disablePictureInPicture
Set disablePictureInPicture
Clear disablePictureInPicture
User activation — two APIs, one click (
#261
)
requestPiP → getDisplayMedia
getDisplayMedia → requestPiP
Fullscreen while in PiP (
#260
§7)
Fullscreen the video
Exit interrupted by iframe destruction (
#260
unresolved)
iframe: exit + remove frame
iframe: exit + navigate away
Event Log
Clear
PiP Window Info
No active PiP window