Chrome 124 adds the disallowReturnToOpener option. When set to true, it hides the "back to tab" button that by default appears in the top bar of the PIP window. See https://chromestatus.com/feature/6223347936657408.
Chrome 130 adds the preferInitialWindowPlacement option. When set to true, it causes the PIP window to always appear back at its default initial position and size when closed and then reopened. By default, it will reopen at its previous position and size. See https://chromestatus.com/feature/5183881532932096.
I've tested that both features work in the latest Chrome, but I've not tested exact versions in detail.
Description
This PR adds documentation for two new options available to the
DocumentPictureInPicture.requestWindow()
method:disallowReturnToOpener
option. When set totrue
, it hides the "back to tab" button that by default appears in the top bar of the PIP window. See https://chromestatus.com/feature/6223347936657408.preferInitialWindowPlacement
option. When set totrue
, it causes the PIP window to always appear back at its default initial position and size when closed and then reopened. By default, it will reopen at its previous position and size. See https://chromestatus.com/feature/5183881532932096.I've tested that both features work in the latest Chrome, but I've not tested exact versions in detail.
Motivation
Additional details
Related issues and pull requests