Closed Bug 521894 Opened 15 years ago Closed 7 years ago

Image onload fires during synchronous XmlHttpRequest

Categories

(Core :: DOM: Core & HTML, defect)

1.9.1 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 697151

People

(Reporter: steve, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Making a synchronous XmlHttpRequest can cause re-entrant behavior where an asynchronous image onload event is called during execution of a synchronous code block. It seems likely that this problem occurs for some other events as well.

Reproducible: Always

Steps to Reproduce:
1. set an image's src property in script.
2. make a synchronous XmlHttpRequest
Actual Results:  
The image onload will fire before the synchronous XmlHttpRequest returns.

Expected Results:  
The image onload fires after the synchronous XmlHttpRequest returns.
Version: unspecified → 3.5 Branch
There must already be a bug about this, but I can't find it...
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Version: 3.5 Branch → 1.9.1 Branch
There's a newer bug that has more detail.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.