Throttle timeouts in foreground cross-origin iframes that the user hasn't interacted with to 30fps




2 years ago
4 months ago


(Reporter: Ehsan, Unassigned)


Firefox Tracking Flags

(Not tracked)




2 years ago
Safari has started doing this:
(In reply to :Ehsan Akhgari (super long backlog, slow to respond) from comment #0)
> Safari has started doing this:

Is this something blocking our Quantum DOM stuff?
Not really. This is rather separate thing from other Quantum DOM, but as such could indeed be considered as part of Quantum DOM.

This may make the code a bit hairy once we have also the TP throttling.
The thing that is interesting to me about what safari is doing is that they are throttling *foreground* timers.  AFAIK browsers have not successfully done this before.  Just adding our timer yielding stuff with the ThrottledEventQueue hit a bit of web compat.  If they can get away with throttling all cross-origin iframes in the foreground we can probably throttle all TP scripts in the foreground as well.

I wonder if they are doing anything to mitigate the loading spinner while the cross-origin iframes are delayed.  I think thats why we were experimenting with only throttling TP scripts after load.
We already have plans to throttle foreground TP timers.
If one can throttle TP timers in background, throttling them in foreground should work too, and it is easier to notice regressions when throttling happens in foreground.
Priority: -- → P2
Moving to p3 because no activity for at least 1 year(s).
See for more information
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.