← Back to release summary

Document picture-in-picture: add option to hide back-to-tab button

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 124)
Intent stage
None

Summary

This adds a new parameter ("disallowReturnToOpener") to the document picture-in-picture API that, when set to true, hints to the user agent that they should not show a button in the picture-in-picture window that allows the user to return to the opener. While having a button to return content to the opener always makes sense in the video picture-in-picture case (the video stream can be returned to the video element in the opener tab), this is not always the case for document picture-in-picture experiences. This gives developers more control over the user experience when they determine that such a button does not make sense for their use case.

Motivation

While having a button to return content to the opener always makes sense in the video picture-in-picture case (the video stream can be returned to the video element in the opener tab), this is not always the case for document picture-in-picture experiences. This gives developers more control over the user experience when they determine that such a button does not make sense for their use case.

Standards & signals

Samples: https://steimelchrome.github.io/document-pip/hide-back-to-tab-button.html

View on chromestatus.com