How to make Firefox always stop a script when it's not responding

22

4

On some pages I get the "Script not responding" error with an option to stop it and a checkbox to never ask again.

Later I get the same question again, with that pointless checkbox.

How do I make Firefox always stop a script when it's not responding?

IAdapter

Posted 2011-11-16T08:44:26.950

Reputation: 669

1

Feature requested at https://bugzilla.mozilla.org/show_bug.cgi?id=339860

– Martin Monperrus – 2017-05-06T07:57:22.047

Answers

10

You have to adjust dom.max_script_run_time in about:config to higher value.

As noted previously, this timeout also applies to add-ons using Javascript, as such it will be reached easily on slow computers using AdBlock, or even AJAX-rich websites like Google Docs etc.

ZaB

Posted 2011-11-16T08:44:26.950

Reputation: 2 365

6This don't answer the question, he is asking about how to make firefox auto stop the script, and didn't ask about how to allow it to run for more time – Ahm3d Said – 2014-10-17T22:47:03.463

Also dom.max_chrome_script_run_time.

– harrymc – 2012-01-31T10:09:01.500

Ur right, your timeout applies to extensions... – ZaB – 2012-01-31T16:02:23.337

8All this does is allow the scripts to run longer, effectively like always hitting the "Continue" button the first time. The OP (and me) wants the opposite: to always hit the "Stop Script" button the first time. – David Nelson – 2012-03-09T00:33:48.667

9This is a non-answer. Three different websites I've been to looking for an answer to this, and each time the most "helpful" response is to avoid problematic scripts or lengthen the time. Why have a "stop script" button when it does nothing (and hasn't ever...) – Glenn – 2013-02-11T02:02:38.090

6

This sounds like a job for YesScript!

This add-on will let you to create a blacklist of sites that are not allowed to run java script. Let me know how it works out for you.

Resources (please refer to this link for more solutions): Warning: Unresponsive Script

Rob

Posted 2011-11-16T08:44:26.950

Reputation: 616

1@harrymc NoScript breaks every website you visit. It's safe like never leaving your house is safe. – endolith – 2015-08-11T20:28:42.767

NoScript is tedious how you have to fine tune each site. There must be a better way of doing things. – James P. – 2019-07-20T22:59:00.010

3NoScript is much safer. – harrymc – 2012-01-31T16:20:51.813

@harrymc Right you are. I've never read or heard about NoScript up until this moment. From the research that I've done, YesScript is NoScript's Antagonist... quite a good way of putting it in this article.

– Rob – 2012-02-01T02:09:51.010

3

There is a big difference between a script going into a loop or waiting upon a server on the Web. Normally it is the second case which causes "Script not responding" errors.

Firefox has got no way of knowing the difference between a Web server not responding or just being slow. So it has a couple of dumb guillotine-type cut-off mechanisms like dom.max_script_run_time and dom.max_chrome_script_run_time, which specify how long it is willing to wait before canceling the script and any connection it might be waiting upon at the moment.

These sort of mechanisms are very dangerous to use. For example, while buying an item on the Web, the online payment site may be slow to react, so Firefox will just cancel the script and connection with unknown results as regarding your bank account.

What I am trying to say is that getting rid of these "Script not responding" errors may be worse than the errors themselves. You might be better off using an extension like NoScript to disallow all javascript on all websites you visit except for the ones you trust (or at least disallow third-party javascript). This is actually a defense mechanism that you and everyone should be using against drive-by-browser viruses.

harrymc

Posted 2011-11-16T08:44:26.950

Reputation: 306 093

2

With the plugin NoScript you are able to stop/block any script on a web page one by one.

If you know which script isn't responding you will be able to add it on the NoScript black list and it will never disturb you again.

Dsandre

Posted 2011-11-16T08:44:26.950

Reputation: 475

0

BugMeNot114514

Posted 2011-11-16T08:44:26.950

Reputation: 11

0

Do you have any add-on's such as Noscript, Adblock, Ghostery and TACO?

If yes, then there is conflicts with these add-on's.

Siva Charan

Posted 2011-11-16T08:44:26.950

Reputation: 4 026

Certainly not with NoScript. – harrymc – 2012-01-31T16:21:25.743