Firebug seems to be causing out of order execution on the first call
to eval on my Mac.

I am running FireFox 3.0.4 on Mac OS X 10.5.5 on a a white 2.16GHz
Core 2 Duo iMac.  I am seeing this behavior with both Firebug 1.2.1
and Firebug 1.3X.0b3.  I am not seeing the same behavior in Firefox/
Windows (via Parallels).

It seems that when Firebug is running, the first call to eval is often
'put on hold', and execution of other code is allowed to proceed.

Perhaps this is a 'feature' of JavaScript and/or Firefox that I don't
know about and is just exacerbated by Firebug...?

I have posted a sample page which reproduces the problem most of the
time (hit refresh several times if it doesn't show up at first).

The output of this code should have identical numbers being adjacent.
That is, something like this:

1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,

However, when Firebug is installed, more often than not I get this:

1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,1,

which means that the function containing the first call to eval must
have been put on hold while other code was allowed to execute, which
as far as I understand is not correct javascript behavior -- is that
correct?

Steps to reproduce:
1) Go to http://jordan.broughs.net/execution-order.html
2) Enable all Firebug panels (Console, Script and Net) for the site.
3) Keep reloading the page (cmd+r) until you see that the alert box
does not start with '1,1,'

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to