On Oct 12, 2:05 pm, Jan Honza Odvarko <odva...@gmail.com> wrote: > One of the Firebug automated tests is using following script to check > that XHR displayed in the Console panel (and the Net panel) is > properly finished if aborted: > > var request = new XMLHttpRequest(); > request.open("POST", "<my-url>", true); > request.send(null); > request.abort(); > > It works in Firefox 17, where onHTTPSpyReadyStateChange (state 1 and > 4) is executed for the request and ACTIVITY_SUBTYPE_REQUEST_HEADER, > ACTIVITY_SUBTYPE_RESPONSE_COMPLETE and > ACTIVITY_SUBTYPE_TRANSACTION_CLOSE events sent by > nsIActivityDistributor - so, Firebug know that the request has > finished (and aborted). > > However it doesn't work in Firefox 19 where onHTTPSpyReadyStateChange > is not executed and no events from nsIActivityDistributor received. > > Is this a bug or an expected behavior? > > Honza
I reported the problem here: https://bugzilla.mozilla.org/show_bug.cgi?id=802551 Honza _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform