搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Get rid of annoying pop up

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 hellokimmiee

more options

Every time I search something on a certain website I get a pop up that says: "This page is asking you to confirm that you want to leave — information you’ve entered may not be saved." This has only started happening since Firefox updated and it's very annoying. I use the website for work so I don't want to stop every ten minutes to click leave page.

Every time I search something on a certain website I get a pop up that says: "This page is asking you to confirm that you want to leave — information you’ve entered may not be saved." This has only started happening since Firefox updated and it's very annoying. I use the website for work so I don't want to stop every ten minutes to click leave page.

被采纳的解决方案

This isn't new, but maybe you had customized a preference before and it reverted to default.

That message is generated when sites have hooked into the "beforeunload" event triggered by leaving the page. (Or perhaps if an add-on injected code into the page to do that.) If you do not want ANY site to ever be able to hook into that event, there is a preference for that. But unfortunately there's no way to block it just for one site.

Global preference:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste dom.disable_beforeunload and pause while the list is filtered

(3) Double-click the preference to switch the value from false to true

More info on about:config: Configuration Editor for Firefox.

定位到答案原位置 👍 1

所有回复 (2)

more options

选择的解决方案

This isn't new, but maybe you had customized a preference before and it reverted to default.

That message is generated when sites have hooked into the "beforeunload" event triggered by leaving the page. (Or perhaps if an add-on injected code into the page to do that.) If you do not want ANY site to ever be able to hook into that event, there is a preference for that. But unfortunately there's no way to block it just for one site.

Global preference:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste dom.disable_beforeunload and pause while the list is filtered

(3) Double-click the preference to switch the value from false to true

More info on about:config: Configuration Editor for Firefox.

more options

jscher2000 said

This isn't new, but maybe you had customized a preference before and it reverted to default.

That worked! Thanks a million.