Closed Bug 932406 Opened 10 years ago Closed 8 years ago
Shumway: need the ability to enforce maximum JS execution time in a worker
The Flash Player has configurable values for maximum event turn duration and stack depth. To support the maximum duration in a worker, we need some way to unwind a stack in the worker without terminating it completely. Doing the latter would kill all player instances running in that worker - not ideal. We apparently already have all the infrastructure in place for this, but need to expose it to script in some way. My proposal would be a new worker callback `ontimeout` that gets called after the timed-out event turn got stopped and the stack was unwound. Whether that happens on the main thread or in the worker is secondary for our needs. We can obviously do this just in the special Shumway worker we need for bug 930908. I wonder if having this in web workers in general wouldn't be useful, though.
Till: is this bug still relevant now that ShumwayWorkers have been WONTFIX'd?
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.