Firefox has long had a feature to protect users from over-aggressive Javascript websites that would generate repeated pop-ups to trick or annoy visitors. Is there a way to disable this protection on specific websites, rather than disabling it entirely?
I've found a way of doing the latter and while it's been years since I've seen one of those popup-bait websites I'd rather not risk my browser's security or stability by disabling the warning globally.
While I understand that any legitimate website has no business abusing pop-ups in this fashion, the ERP portal that I need to use introduced this amazing pop-up feature in a recent update.
Note: this question is about disabling the warning from the user-side.
Best Answer
This behaviour can be controlled by setting the config parameter
dom.successive_dialog_time_limit
. This integer value represents a time window in seconds since the last pop-up. If a website generates a new pop-up within that window, Firefox will instead trigger the "Prevent..." dialog.To set this value:
1: for most cases, setting this value to 1 or 2 seconds will be sufficient to allow pop-up heavy websites to work without interruption while still stopping malicious infinite pop-up JavaScript code.