搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to disable fullscreen permission and window.onbeforeunload popup permamently?

  • 2 回覆
  • 17 有這個問題
  • 15201 次檢視
  • 最近回覆由 4Corvus

more options

I never want to see the fullscreen permission dialog or the "are you sure you want to leave this page" dialog popups. They are only annoying.

被選擇的解決方法

You can set the dom.disable_beforeunload pref to true on the about:config page to disable this alert.

  • dom.disable_beforeunload = true

The only choices for full screen permissions are "Always Ask" and "Block". You can manage the full screen permission via "Tools > Page Info > Permissions" or via the about:permissions page.

You can toggle this pref that is aimed at developers to false if you want to suppress this dialog.

  • full-screen-api.approval-required = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

從原來的回覆中察看解決方案 👍 10

所有回覆 (2)

more options

選擇的解決方法

You can set the dom.disable_beforeunload pref to true on the about:config page to disable this alert.

  • dom.disable_beforeunload = true

The only choices for full screen permissions are "Always Ask" and "Block". You can manage the full screen permission via "Tools > Page Info > Permissions" or via the about:permissions page.

You can toggle this pref that is aimed at developers to false if you want to suppress this dialog.

  • full-screen-api.approval-required = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

cor-el said

You can set the dom.disable_beforeunload pref to true on the about:config page to disable this alert.
  • dom.disable_beforeunload = true

The only choices for full screen permissions are "Always Ask" and "Block". You can manage the full screen permission via "Tools > Page Info > Permissions" or via the about:permissions page.

You can toggle this pref that is aimed at developers to false if you want to suppress this dialog.

  • full-screen-api.approval-required = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

THANK. YOU. SO. MUCH.