Re: Cross-process JS wrappers

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Benjamin Smedberg wrote:
>> nsJSContext::ScriptEvaluated tells you when the script is done. Combined
>> with a new function indicating when it starts, we might have something
>> good enough for this...
> 
> Doesn't that fire when a JS DOM event listener is done, even if an outer
> script triggered the event? e.g.:

Right; hence the need for a notification when the listener is entered 
too, per what I said.

>> The hard part is what happens if the script spins the event loop.  ;)
> 
> If the script spins the event loop it doesn't have any useful atomic
> run-to-completion semantics anyway, right?

It does from start to when it starts spinning and from when it stops 
spinning to end....

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.