Closed Bug 407754 Opened 18 years ago Closed 8 years ago

xmlhttprequest waits for response even after it has been aborted

Categories

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

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: leon1638, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 I make an xmlhttprequest to a web page that processes a lot of report data behind the scenes that takes at least 20 seconds. If a abort the request and try to make another xmlhttprequest it waits for the first one to return a response and then it will make the second attempt. Or when I try to click on a different link after the xmlhttprequest has been made it will not go to the page that i clicked on until the xmlhttprequest has return a response. Reproducible: Always Steps to Reproduce: 1. Make xmlhttprequest that will take a long time to return 2. Try to click on a link that will take you to another page Actual Results: Doesn't go to the second page until after the xmlhttprequest has returned a response Expected Results: Aborted the request and went to the specified page
I also get this bug. When I create a xmlhttprequest and get it to load a site then call the abort function it doesn't. I think this might be related to the old bug where aborting and using the same xmlhttprequest would crash the browser. This does not happen now. Instead it looks like a hack. Where xmlhttprequest just keeps making new objects when abort is called. Every time I call abort and reuse that same object to load a url. I see another connection. So if i abort and load 5 urls rather than having one connection loading I have 5.
I'm using XMLHTTPRequest to upload a lot of data (file uploads). Using abort() mid-upload will not abort the requst. The file will just continue uploading for minutes, or whatever amount of time is left.
whats up guys ! yes its all good ! i believe it was the chrome theme , i reinstalled windows and a fresh version of chrome . i think the other techs earlier that did a screen share with me( anonymously )watching the data packets stream back and forth. i had some fun with them while they were monitoring they should of emailed me so i would of gotten off line so they could have gotten better and more accurate results ...( LMAO ) i believe it was the theme from the chrome store cause it has extensions and . it was affecting some people from what i have read. my homepage was also defaulting to some other page. it wouldnt except the chrome url that was earlier in the week. but if u guys wanna take a look lemme know and i will get off. if not THANK YOU GUYS ! !
Component: XML → DOM
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.