Firefox FireFTP addon “Unresponsive script” fix

When using the FireFTP add-on in Firefox, and trying to show the contents of a directory with lots (500+) of entries, after 20 seconds or so, a window pops up suggesting “Unresponsive script” with the option to Stop or Continue. The solution is as follows…

To make Firefox extend the time that an add-on script runs before timing out:

  1. In a new tab, enter: about:config, and then acknowledge the warning screen
  2. In the search box, enter: dom.max_chrome_script_run_time
  3. Double click the value, and change the default of 20 (seconds), to a higher value, eg. 60 (seconds)
  4. Restart your browser

Some solutions suggest changing a similar entry called “dom.max_script_run_time”, but this only extends the time that javascript runs in a window.