Open Bug 1482743 Opened 6 years ago Updated 2 years ago

[Enhancement] Block exit popups

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

61 Branch
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: erwinm, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180807170231

Steps to reproduce:

I visited this web site: https://www.gardeningknowhow.com/edible/vegetables/onion/managing-black-mold-on-onions.htm


Actual results:

I got punched with an animated exit popup.

The standard popup setting fails to block in-window exit popups. This hidden setting is supposed to block them:

dom.disable_beforeunload to true

https://www.reddit.com/r/uBlockOrigin/comments/6c7778/blocking_exit_and_exit_intent_popups/

This setting can't block all animated exit popups. I encountered one site which defeats this-- and advertises software to defeat this-- but it may help block some.


Expected results:

An alternative might be to set dom.disable_beforeunload to false when pop-ups are not disabled and true when they are disabled.
(In reply to MarjaE from comment #0)
> dom.disable_beforeunload

The newsletter signup box pops up not on exit, but when the mouse cursor moves off the page. For example, closing the tab with Ctrl+W doesn't trigger it.

The following extension disables transitions and animations.
https://addons.mozilla.org/firefox/addon/no-transition/

To prevent the box from showing up altogether, you'll have to block it or the script that it relies on in uBlock Origin, e.g.
*/wbounce$script,important
Severity: normal → enhancement
Component: Untriaged → DOM
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.