Re: Using microtask checkpoints for resetting the slow script dialog timer

Bobby Holley <[email protected]> Wed, 10 Jul 2013 22:43:55 -0700
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <CAKBxTcKezffoAw81CbfxXjmpiwxRtaTMhV6ew27mcEoCihEg8Q@mail.gmail.com>
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?

bholley