RESOLVED WONTFIX 26817
cannot launch asynchronous xmlhttprequest from unload event.
https://bugs.webkit.org/show_bug.cgi?id=26817
Summary cannot launch asynchronous xmlhttprequest from unload event.
arno.
Reported 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.
Attachments
Darin Fisher (:fishd, Google)
Comment 1 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.
Note You need to log in before you can comment on or make changes to this bug.