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

Audit all APIs which are not allowed in PiP windows #1

Open
domenic opened this issue Jan 14, 2022 · 0 comments
Open

Audit all APIs which are not allowed in PiP windows #1

domenic opened this issue Jan 14, 2022 · 0 comments

Comments

@domenic
Copy link

domenic commented Jan 14, 2022

Although the explainer API tries to only expose Document, it's quite easy to get from a Document object to its corresponding Window object, e.g. via pipWindow.document.defaultView or pipWindow.__proto__.__proto__.__proto__.constructor("this") or similar.

So this will require a comprehensive audit of which APIs are enabled in PiP windows, versus disabled, since all APIs are reachable. We've done similar work for prerendering, which resulted in the following spec changes so far: https://wicg.github.io/nav-speculation/prerendering.html#intrusive-behaviors

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