-
Notifications
You must be signed in to change notification settings - Fork 56
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
Weird behaviour with Firefox's back-button #20
Comments
The issue seems to be related with historyApi. When the iframe's URL is applied by This change seems the fix this issue. I'm not sure if there are any harmful side-effects with that solution. <body onload="window.location.replace('${this.src}'); parent.postMessage('${this.iframeLoadedMessage}', '*')"></body> |
I experience same issue and created PR based on the suggested solution #23 |
Issue #20, fix firefox's back button
When clicking the back-button in Firefox, the browser will replace the url and content of the iframe with the parent's url and content. Issue can be easily reproduced in vue-friendly-iframe's documentation and demo -site.
Issue exists at least with Firefox 68.3.0, 70, 72.0.1.
Steps to reproduce:
Screenshot:
Discussion elsewhere:
https://stackoverflow.com/questions/5259154/firefox-back-button-vs-iframes
https://stackoverflow.com/questions/2245883/browser-back-acts-on-nested-iframe-before-the-page-itself-is-there-a-way-to-av
The text was updated successfully, but these errors were encountered: