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)
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
I'll look into it.
Created attachment 29013 [details] Same test with error handler.
This looks closely related to bug 22475.
I have a patch that fixes both. *** This bug has been marked as a duplicate of 22475 ***