Closed Bug 280859 Opened 20 years ago Closed 20 years ago

unable to reuse XMLHttpRequest after asynchronous send

Categories

(Core :: XML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 258768

People

(Reporter: bugs, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

XMLHttpRequest do not appear to be reusable after an asynchronous request is
made.  If only synchronous request are made then reuse is just fine.  The
attached code shows that even though open and send are called twice only one
fires the load event.

Reproducible: Always

Steps to Reproduce:
1. Create a new XMLHttpRequest
2. Open the XMLHttpRequest as asynchronous
3. set the onload event handler to reuse the XMLHttpRequest
4. send the request

Actual Results:  
The onload handler of the the second request is never called. No error is thrown
and even code after the second set executs but the request is either never sent
or never returned.

Expected Results:  
Sent and returned the second request.
Attached file Test Case
Please test a current build when reporting a bug.....  This has been fixed since
September.

*** This bug has been marked as a duplicate of 258768 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: