Foxmarks: Increasing the Javascript Timeout

From Foxmarks Wiki

Jump to: navigation, search

If you have been plagued by the annoying "Unresponsive Script" dialog:

Image:unresponsive.png

By default, Firefox allows extensions 5 seconds to perform their tasks; if an extension runs for more than 5 seconds, Firefox assumes that the extension (or script) has gotten itself into an endless loop, and offers you the option to cancel it. Foxmarks has been designed to process synchronization requests in small chunks, each of which is typically quite fast. Nonetheless, on some (slower) computers with some (larger) data sets, Foxmarks can cross the 5 second boundary causing Firefox to display the above dialog.

If you press Cancel, Firefox will terminate Foxmarks and subsequent attempts to sync will result in the message "Foxmarks is busy." The only way to reset Foxmarks in this case is to restart Firefox.

If you press Continue, Firefox will continue to allow Foxmarks to run. You may have to do this several times before synchronization completes.

If you continue to see this dialog...

To avoid future timeout issues, try the following procedure:

  1. In the address bar of a Firefox browser window, enter about:config
  2. In the "filter" bar, enter dom.max_chrome_script_run_time
  3. You should now be able to see a setting appear in the window below the filter bar. The setting's name should match what you entered above (dom.max_chrome_script_run_time.) and most likely shows a default value of 5.
  4. Double-click this setting; Firefox will prompt you for a new value. Enter 10.

If changing this setting still causes the "Unresponsive script" dialog to re-appear, repeat the above procedure but increase the number that you enter in step #4.

Personal tools
Frequently Asked Questions