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

Allow resizing the document pip window programmatically #103

Closed
steimelchrome opened this issue Oct 26, 2023 · 0 comments
Closed

Allow resizing the document pip window programmatically #103

steimelchrome opened this issue Oct 26, 2023 · 0 comments

Comments

@steimelchrome
Copy link
Collaborator

Currently (at least in the Chrome implementation), the resizeTo() and resizeBy() methods used to programmatically resize a window are disabled for document picture-in-picture windows, since there's potential for particularly annoying abuse given the always-on-top nature of the window. However, there are legitimate/useful cases for resizing a window (e.g. the user clicks to expand a playlist). In order to allow for some usage of the resize APIs while limiting its abuse potential, we should allow those APIs but consume a user gesture for each use, so the user must click on the window for it to resize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant