Closed Bug 1137871 Opened 9 years ago Closed 8 years ago

Limit maximal duration of an event loop turn per Shumway instance

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: till, Unassigned)

References

Details

At least for ads, we want to be fairly ruthless about keeping SWFs from causing jank. Instead of waiting the usual 10 seconds and then showing a slow-script dialog, we can just kill the offending player instance. Because the player lives in a different compartment from the GFX part, that would keep a snapshot of the last successfully rendered frame around.

I think it would make a lot of sense to permit substantially less time under ExternalInterface calls, because those directly cause jank in the (html) content process. Perhaps limiting that to 1500ms or so would be just fine. Other script could be given more leniency, maybe even up to the default 10 seconds, but probably less.
Blocks: 1138057
Till says this bug doesn't need to block our M3 milestone.
Blocks: shumway-m4
No longer blocks: shumway-m3
No longer blocks: shumway-m4
Product: Firefox → Firefox Graveyard
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.