Closed
Bug 548132
Opened 15 years ago
Closed 15 years ago
setTimeouts firing out of order
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jwatt, Unassigned)
Details
It appears that two setTimeouts such as:
setTimeout(foo, 10);
setTimeout(bar, 20);
may fire out of order and cause 'foo' to be called after 'bar'. See
https://bugzilla.mozilla.org/show_bug.cgi?id=547801#c4
Reporter | ||
Comment 1•15 years ago
|
||
That's an [orange] bug, BTW.
setTimeout is a DOM thing, though this might be an XPCOM timer issue before we're done!
Assignee: general → nobody
Component: JavaScript Engine → DOM
QA Contact: general → general
Comment 3•15 years ago
|
||
We have code in nsGlobalWindow to ensure that in this situation the latter setTimeout will in fact fire later, no matter what the XPCOM timers do, no? So I don't quite see how this situation could arise.
Reporter | ||
Comment 4•15 years ago
|
||
nsGlobalWindow::InsertTimeoutIntoList() seems to store the timeouts in the order in which they should fire, so you're probably right. Bug 547801 comment 4 is probably mistaken then, so I'll mark this invalid unless/unless we find more compelling evidence to the contrary.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•