How to disable fullscreen permission and window.onbeforeunload popup permamently?
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.
Chosen solution
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.
Read this answer in context 👍 10All Replies (2)
Chosen Solution
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.
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.