[Webkit-unassigned] [Bug 29193] [chromium] Need to prevent Javascript sleeps in unload handlers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 15 09:42:53 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29193





--- Comment #12 from Darin Fisher (:fishd, Google) <fishd at chromium.org>  2009-09-15 09:42:52 PDT ---
(In reply to comment #11)
> The proper way to solve this problem is to give V8 a time bound for running the
> unload handler and have V8 terminate the script internally.  Hacking around
> with the global JS environment is prone to disaster.

Time based is not good enough given the resolution we are talking about here. 
We want to be able to terminate after ~100ms worth of execution, but at that
time scale, we'll get a lot of false positives due to the thread being
interrupted by other processing on the system.  So, we need to count something.
 Maybe counting getTime calls is not the best solution, but we need to count
something other than elapsed wall clock time.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list