Back-Forward in Google Chrome disabled by internal error Ignoreeventandevict

huangapple go评论114阅读模式
英文:

Back-Forward in Google Chrome disabled by internal error Ignoreeventandevict

问题

最近,我遇到了一个问题,即Google Chrome中的后退前进缓存被禁用,使用后退前进缓存调试工具显示出了内部错误Ignoreeventandevict。如果你在Google中搜索这个错误,几乎找不到任何关于这个错误的信息。我发布这个问题是为了让其他人如果遇到类似的问题,他们希望能找到这篇帖子。

对我来说,问题是我有一个pagehide事件监听器,它正在进行history.replaceState调用。删除history.replaceState调用解决了问题。据我所知,这并没有被详细记录,如果Chrome提供了更详细的错误信息将会很好。请注意,我还没有在其他浏览器中测试过是否存在类似的问题。

我希望这对于那些遇到相同Ignoreeventandevict错误的人有所帮助。

英文:

Recently I come accross an issue whereby the Back-Forward Cache in Google Chrome was disabled and using the Back-Forward Cache debug tools revealed the issue was an Internal error Ignoreeventandevict. If you do a Google search for the error you'll find almost nothing about the error. I'm posting this question so that if others run into a similar issue they'll hopefully find this post.

The issue for me was that I had a pagehide event listener which was making a history.replaceState call. Removing the history.replaceState call resolved the issue. This isn't documented as-far as I can tell, it'd be nice if Chrome provided a more detail of the error. Note I've not tested this in other browsers to see if they have a similar issue.

I hope this helps anyone struggling with the same Ignoreeventandevict error.

Back-Forward in Google Chrome disabled by internal error Ignoreeventandevict

答案1

得分: 1

history.replaceState 调用如果在 pagehide 处理程序中使用,会禁用 Google Chrome 中的“后退前进缓存”。

英文:

The history.replaceState call disables the Back-Forward Cache in Google Chrome if used in a pagehide handler.

huangapple
  • 本文由 发表于 2023年5月10日 21:01:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76218734.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定