Closed Bug 932406 Opened 11 years ago Closed 8 years ago

Shumway: need the ability to enforce maximum JS execution time in a worker

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: till, Unassigned)

References

Details

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.
Assignee: general → nobody
Whiteboard: [Shumway] → [Shumway:P1]
Depends on: 949992
Whiteboard: [Shumway:P1] → [shumway:m2]
Till: is this bug still relevant now that ShumwayWorkers have been WONTFIX'd?
Blocks: shumway-1.0
Flags: needinfo?(till)
Whiteboard: [shumway:m2]
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(till)
You need to log in before you can comment on or make changes to this bug.