Bug 24886

Summary: XHR requests opened when offline never return
Product: WebKit Reporter: James Watts <jwatts>
Component: XMLAssignee: David Levin <levin>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, linus, ojan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.5   
Attachments:
Description Flags
test case
none
Same test with error handler. none

James Watts
Reported 2009-03-27 08:44:33 PDT
Opening and sending an XMLHttpRequest when offline will call back the ready state change handler with the loading state, but will never respond after this, even if the network connection is restored. Other browsers will always timeout and fail, and in some cases (FF3 on the mac) will recover if the network is restored. Workaround is to set a timeout and abort the request, but this shouldn't be necessary. Repro'd on: Chrome 2 (v530.1 Win XP SP3) Safari 4 (v528.16 Mac OSx 10.5.6 Macintosh Intel) Webkit Nightly (v530.4+ Mac OSx 10.5.6 Macintosh Intel)
Attachments
test case (796 bytes, text/html)
2009-03-27 08:48 PDT, James Watts
no flags
Same test with error handler. (926 bytes, text/html)
2009-03-27 09:43 PDT, David Levin
no flags
James Watts
Comment 1 2009-03-27 08:48:32 PDT
Created attachment 29011 [details] test case To repro with this file: -- edit the url to a valid URL -- load this file and clear the cache -- disable the network -- click 'send xhr' -- hang on loading
David Levin
Comment 2 2009-03-27 09:22:11 PDT
I'll look into it.
David Levin
Comment 3 2009-03-27 09:43:53 PDT
Created attachment 29013 [details] Same test with error handler.
Alexey Proskuryakov
Comment 4 2009-03-28 09:53:53 PDT
This looks closely related to bug 22475.
Alexey Proskuryakov
Comment 5 2009-04-01 03:51:57 PDT
I have a patch that fixes both. *** This bug has been marked as a duplicate of 22475 ***
Note You need to log in before you can comment on or make changes to this bug.