Bug 26817 - cannot launch asynchronous xmlhttprequest from unload event.
Summary: cannot launch asynchronous xmlhttprequest from unload event.
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL: http://renevier.net/bugs/xmlhttpreque...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 15:39 PDT by arno.
Modified: 2010-06-14 10:55 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arno. 2009-06-29 15:39:41 PDT
Hi,
I'm trying to ping the server when user leaves page. So, I'm running an asynchronous xmlhttprequest from unload event. This works fine in internet explorer, firefox, opera (when it manages to send an unload event). But with webkit-gtk, my server nevers gets the requests.
To reproduce, copy testcase to your webserver, and check for a get request to file.php in your logs.
Comment 1 Darin Fisher (:fishd, Google) 2010-06-14 10:55:04 PDT
I don't think this is guaranteed in Firefox or IE.  You are probably just getting lucky.

I think this bug is WONTFIX.

IE does however let you create an image during an unload handler, and the image request will be delivered (unless the browser is shutting down completely).  Bug 30457 is about implementing this very same quirk.