Re: Using microtask checkpoints for resetting the slow script dialog timer
smaug <[email protected]> Fri, 12 Jul 2013 09:18:40 -0400
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 07/11/2013 01:43 AM, Bobby Holley wrote: > On Wed, Jul 10, 2013 at 10:36 PM, Boris Zbarsky <[email protected]> wrote: > >> To the extent that the concept of "unwind the stack" is a bit >> whack-a-mole, yeah. I'm not saying it couldn't be better. ;) > > > Ok. Could we make this better by tying it to the 0<->1 transition in > request depth on the runtime? That should more or less correspond with the > first cx we push, which should give us a much more reliable answer. > > >> But CallbackObject constructs an AutoMicroTask, right? So doesn't that lend >> us to the same problem? Or is the idea that the 'checkpoint' only happens >> when the microtask depth hits zero? >> > > Yes, exactly. > > > What are the situations where the stack completely unwinds but we don't > spin the top-level event loop? Event handling. If you have several event listeners, microtask check point is after each of those. > > bholley >