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

Iframes are reloaded when going into DPIP #131

Open
saghul opened this issue Nov 28, 2024 · 0 comments
Open

Iframes are reloaded when going into DPIP #131

saghul opened this issue Nov 28, 2024 · 0 comments

Comments

@saghul
Copy link

saghul commented Nov 28, 2024

👋 I was testing the following to see if it would work as a workaround for iframes not (yet) being able to request DPIP:

  • Top level document has an iframe inside a div with id "container"
  • Put the "container" div into DPIP

Expectation:

  • The iframe would move into the new PiP window, as if nothing happened?

Result:

  • The iframe is reloaded

Some other observations:

I can kind of understand the behavior, if we consider that window.parent for the iframe would change. I assume, thus, that the iframe's parent window would be the PiP window, and thus some extra code would be necessary to communicate with the iframe, once it moves to the other window, correct?

Has the idea of "seamlessly" transitioning to the PiP window been given some thought?

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