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

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
5 years ago
3 years ago

People

(Reporter: till, Unassigned)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
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.
(Reporter)

Updated

5 years ago
Assignee: general → nobody

Updated

5 years ago
Whiteboard: [Shumway] → [Shumway:P1]
(Reporter)

Updated

5 years ago
Depends on: 949992
Whiteboard: [Shumway:P1] → [shumway:m2]
Till: is this bug still relevant now that ShumwayWorkers have been WONTFIX'd?
Blocks: 1038057
Flags: needinfo?(till)
Whiteboard: [shumway:m2]
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
(Reporter)

Updated

3 years ago
Flags: needinfo?(till)
You need to log in before you can comment on or make changes to this bug.