How does a browser determine that a script has run for too long ? Is it actually configurable through some advanced settings ?
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
This is probably not the answer you expected but it might be useful to somebody else. I only know the details for Firefox but I assume that the other browsers do something similar (at least the ones that limit script execution, see the link provided by Yannis Rizos in the comments).
So the trick Firefox is using: there is a thread checking regularly how long the processing of the current event takes (how much time has been spent outside the event processing loop so far). If it exceeds a certain threshold (determined by the
The real implementation is of course more complicated than what I explained above (e.g. when it comes to modal dialogs) but this should be enough to get you started if you want to find out more.