readystatechange event for OPENED (1) not fired in beforeSend for WebKit browsers

readystatechange event for OPENED (1) not fired in beforeSend for WebKit browsers

Is there a reason why in the jQuery.ajax() method beforeSend() is
called AFTER the xhr.open() method?
The problem is that the readystatechange event for OPENED (1) is not
called in WebKit browsers(Safari, Chrome) when you bind a handler to
the xhr.onreadystatechanged after the connection has been opened
(xhr.open()). I need this for a long-polling connection (I want to do
several things when the connection is initiated).
I can't find a reason in the documentation for this (neither in the
jQuery source). Or is it an bad implementation of the WebKit browsers?
I've solved it for now by overriding the function for creating the xhr
object:
$.ajax({
xhr: function() {
var xhr = jQuery.ajaxSettings.xhr();
     xhr.onreadystatechange = function() {
        alert(xhr.readyState);
     };
...etc
});
Thanks,
Pieter
--