Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7048467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:53:45+00:00 2026-05-28T02:53:45+00:00

I try to understand Firefox’s behavior regarding the added prevent this page from creating

  • 0

I try to understand Firefox’s behavior regarding the added “prevent this page from creating additional dialogs” on dialog boxes.

Using jquery, if I add the following listeners :

//html
<input class="testInput" />

//javascript
$('.testInput')
.click(function(){ alert('clicked') })
.keyup(function(){ alert('keyup') })
  1. When clicking on the input, the alert box appears normally, until the
    ~13th time.
  2. When hitting a key, on the other hand, the second message box already
    appears with the message “prevent this page from creating additional
    dialogs”. Actually, there seems to be some tiemout, and if I wait
    like 2 seconds between two keystrokes, the message disappears.

From my informal tests, 2. actually applies whenever the alert box is not called from within a onclick callback (e.g : keyup callback, displaying an alert box in answer to an ajax action…)

I am using Firefox 9.0.1 under Ubuntu, as far as I know I haven’t tweaked firefox’s settings regarding these thresholds.
I imagine it happens with any recent version of any browser.

I am using the jQuery library, but I don’t think it is relevant here.

My question is :
What are the exact rules which make this warning appear in a dialog box ?

[Edit]

Using Chromium/Ubuntu (version 17.0.963.26), the threshold seems to be only the delay between two dialog boxes.

You can test this from jsfiddle here (thx Rory McCrossan)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:53:45+00:00Added an answer on May 28, 2026 at 2:53 am

    The exact rule(s): A timed interval between the dialog boxes popping up.
    The value used to determine this is set in SUCCESSIVE_DIALOG_TIME_LIMIT

    Check out line 2614 in the link below the snippet:

    nsGlobalWindow::DialogOpenAttempted()
    
    TimeDuration dialogDuration(TimeStamp::Now() - topWindow->mLastDialogQuitTime);
    
    if (dialogDuration.ToSeconds() < Preferences::GetInt("dom.successive_dialog_time_limit",SUCCESSIVE_DIALOG_TIME_LIMIT)){topWindow->mDialogAbuseCount++;return (topWindow->GetPopupControlState() > openAllowed || topWindow->mDialogAbuseCount > MAX_DIALOG_COUNT);}topWindow->mDialogAbuseCount = 0; return false;}
    

    Link to source

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As I see in comments of this page , I could not understand that
Try to understand WPF. This is my test classes: public partial class MainWindow :
I am try to understand this code: Var1 = re.compile(rnothing is (\d+)).search i am
there is something I try to understand. I have this object declaration in my
i just read this article : https://developer.mozilla.org/en/HTTP_Caching_FAQ There's a firefox behavior (and some other
I try to understand the behavior of associations, but I am doing something wrong.
When developing, I like to try and understand more than just do this. Especially
I have tried everything to try understand what the if part of this statement
I try to understand the advantage of Properties Triggers over Data Triggers in WPF.
I try to understand the memory management in ObjectiveC and still some things are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.