Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome 124/130 support new DocumentPictureInPicture.requestWindow() options #25173

Conversation

chrisdavidmills
Copy link
Collaborator

…indow()

Summary

This PR adds data points for two new options available to the DocumentPictureInPicture.requestWindow() method:

  • 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.

Test results and supporting details

Related issues

@github-actions github-actions bot added data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Nov 21, 2024
@caugner caugner changed the title Document recent option additions to DocumentPictureInPicture.requestW… Chrome 124/130 support new DocumentPictureInPicture.requestWindow() options Nov 22, 2024
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Compact diff grouped by value:
image

@caugner caugner merged commit 791ed80 into mdn:main Nov 22, 2024
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants