在 Firefox 中禁用推送状态
我在 IE8(模拟 IE7)中遇到了一个错误,该错误导致我的 iFrame 推送状态 hack 重定向到 iFrame 中的 URL,并且我在 IE 中尝试调试时遇到了困难。如果有办法禁用 Firefox 对推送状态的识别,以便我可以在 Firefox(甚至 Chrome)中复制这种情况,但仍然可以使用控制台窗口进行更有效的调试?
另一种选择是,如果有人看到此情况,iFrame 推送状态黑客将正常工作,然后重定向到 iFrame 的 url(失去转发功能,这让我相信它正在重定向)
另一个注意事项:没有 window.location =或 document.location 行显然会导致重定向,这是我看到前进按钮被禁用后看到的第二件事。
I've run into a bug in IE8 (emulating IE7) that is causing my iFrame push-state hack to redirect to the URL in the iFrame and I'm having a heck-of-a-time trying to debug in IE. If there a wya to disable Firefox's recognition of push-state so I can replicate the situation in Firefox (or even Chrome) but still have the use of the console window for more effective debugging?
Another option is if anyone has seen this where the iFrame push-state hack will work correctly and then redirect to the iFrame's url (loosing the forward capability which is what leads me to believe it's redirecting)
Another note: there are no window.location = or document.location lines that would obviously cause the redirect, that was the 2nd thing I looked at once I saw the forward button was disabled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以在 Firefox 中禁用 PushState,该设置称为
browser.history.allowPushState
browser.history.allowPushState< /代码> 设置
Yes, you can disable pushState in Firefox, the setting is called
browser.history.allowPushState
browser.history.allowPushState
setting