tmim
tmim

Reputation: 12811

How do I make the unresponsive script warning come up?

I am making a firefox extension and I have a manual script entry box. I don't want the script to hang the browser when it is run. How can I make an unresponsive script error popup come up if the script runs for longer than a second.

Upvotes: 1

Views: 243

Answers (2)

Zachary Wright
Zachary Wright

Reputation: 24070

This is controlled by the user by entering about:config in Firefox, and changing the dom.max_script_run_time value.

Upvotes: 1

sdwilsh
sdwilsh

Reputation: 4682

The long running script prompt cannot be controlled in that way. Firefox automatically shows it after a certain number of JS operations have been done without returning control (it's something around 30 seconds on average).

Upvotes: 0

Related Questions