-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Iframe refreshes automatically when tab change. #32487
Comments
@bluej4ker: can you please provide an example reproduction (and especially one where it is undesired). Or describe your use case where this is a problem. I believe this is the intended behavior for iframes to unload when inactive and then reload when active again. |
Imagine watching a video in a tab. You may experience this problem when we move to a different page. Or imagine that you are opening a pop-up page in iframe, the same problem occurs again. You may think that we should use different tags for the video, but if we are using our own player system, we have no choice but to use the amp-iframe tag. |
This is being fixed in #32478 |
Ok, so this is from the same PR that caused #32463. However, #32436 was caused by the interaction with the Owners system leading to an incorrect state. This seems to be caused because we're interpreting the tab switch (iframes shouldn't unload) the same as a Viewer swipe-to-next-doc (iframes should unload). We'll need to fix this. |
There has been a change in amp iframe after the last update. Iframe is automatically refreshed when you switch to a different tab on the site with iframe. Do you have a solution to prevent this?
The text was updated successfully, but these errors were encountered: