[webkit-help] setTimeout and Safari
Steve Conover
sconover at gmail.com
Tue Sep 28 23:19:43 PDT 2010
Actually I am discovering what one might describe as a "normal"
problem here...how to know when the setTimeout's are done firing. The
ideal would that I could somehow drill into the dom implementation and
ask whether any setTimeout events are waiting to fire (and stop
polling if the queue length is zero).
I'm sure that's way off in terms of how this is actually implemented.
Does such a thing exist? Could someone please point me to the
relevant sourcecode?
Regards,
Steve
On Tue, Sep 28, 2010 at 10:36 PM, Steve Conover <sconover at gmail.com> wrote:
> Sigh. Please disregard. After an hour of troubleshooting, I sent
> this email, and two minutes later realized the problem was bad js
> (blush).
>
> On Tue, Sep 28, 2010 at 10:22 PM, Steve Conover <sconover at gmail.com> wrote:
>> I hope this is the right place to be asking this question.
>>
>> I'm using the cocoa api, and am able to load a web page in a WebView.
>> However I have some javascript in the page that uses setTimeout to
>> cause a function to fire 100ms into the future - but the page loads
>> and ignores the setTimeout's.
>>
>> How do I get my setTimeout's to fire? I suspect this has something to
>> do with the Run Loop, but my experiments so far with various parts of
>> the Run Loop api have been failures.
>>
>> Regards,
>> Steve
>>
>
More information about the webkit-help
mailing list