internet-explorer - 在 Firefox 中禁用推送状态

标签 internet-explorer firefox firebug pushstate

我在 IE8(模拟 IE7)中遇到了一个错误,该错误导致我的 iFrame 推送状态 hack 重定向到 iFrame 中的 URL,并且我在尝试调试时遇到了困难IE。如果有办法禁用 Firefox 对推送状态的识别,以便我可以在 Firefox(甚至 Chrome)中复制这种情况,但仍然可以使用控制台窗口进行更有效的调试?

另一种选择是,如果有人看到此情况,iFrame 推送状态黑客将正常工作,然后重定向到 iFrame 的 url(失去转发功能,这让我相信它正在重定向)

另一个注意事项:没有明显会导致重定向的 window.location = 或 document.location 行,这是我看到前进按钮被禁用后看到的第二件事。

最佳答案

是的,您可以在 Firefox 中禁用 PushState,该设置名为 browser.history.allowPushState

  1. 在 Firefox 中打开“about:config”页面
  2. 搜索“pushstate”
  3. 双击 browser.history.allowPushState 设置

关于internet-explorer - 在 Firefox 中禁用推送状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7449878/

相关文章:

java - 使用 java imageIO 重新采样时 jpeg 被损坏

firefox - float div 在 Firefox 中无法正常工作

firebug - 禁用 Firebug Break on unnecessary exceptions

html - IE 不喜欢 header html 或 css?

css - 使用 CSS 将文本链接替换为 "Buy-It"按钮。想要隐藏 a.class 但 a.class :before to be visible. 在 IE 中不起作用。为什么?

javascript - IE 中的 AngularJS 错误与样式与 ng 样式

jquery - 为什么是:target pseudo class not working in IE?

html - Firefox 的模糊效果滤镜

macos - 如何在浏览器窗口中停靠 Firebug?

javascript - 如何从 Firebug Profiler 获取函数调用的参数?