Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can kick around the Firefox source if you like. Note that different browsers will have different rules.</p> <p>The relevant code for Firefox is in <a href="http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp" rel="nofollow"><code>nsGlobalWindow.cpp</code></a> and <a href="http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.h" rel="nofollow"><code>nsGlobalWindow.h</code></a> (the links below are to line numbers, and so will slowly rot as the source changes). It appears to be controlled by the constants <a href="http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.h#116" rel="nofollow"><code>MAX_DIALOG_COUNT</code></a> (10) in <code>nsGlobalWindow.h</code> and <a href="http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.h#112" rel="nofollow"><code>SUCCESSIVE_DIALOG_TIME_LIMIT</code></a> (3, units are seconds). <code>nsGlobalWindow.cpp</code> keeps a count (<code>mDialogAbuseCount</code>). Apparently, the <a href="http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#2611" rel="nofollow"><code>dialogDuration</code></a> function either increments or clears <code>mDialogAbuseCount</code> depending on whether the dialog has been open longer than the SUCCESSIVE_DIALOG_TIME_LIMIT. The <a href="http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#2628" rel="nofollow"><code>AreDialogsBlocked</code></a> function uses the <code>mDialogAbuseCount</code> (in part) to decide whether they're blocked.</p> <p>So in short: If you're repeatedly opening pop-ups and then closing them within three seconds, after 10 or so you'll trigger something.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload