On 4/2/12 1:58 PM, Jan Honza Odvarko wrote:
> Firebug is overriding<xhr-request>.onreadystatechange and when the
> callback is executed it calls the original handler, see here:
>
https://github.com/firebug/firebug/blob/master/extension/content/firebug/net/spy.js#L815
>
> When I updated to today's nightly build (
http://hg.mozilla.org/mozilla-
> central/rev/3e46009daea3) execution of the original callback throws an
> exception:
>
> Error: originalHandler.handleEvent is not a function
> Source File: chrome://firebug/content/net/spy.js
> Line: 815
>
> Is there any XHR related change in the latest nightly?
Yes, XHR was switched to the new DOM bindings, which actually implement
the current WebIDL and DOM specs.
In particular, onreadystatechange is now just a Function object, not an
nsIDOMEventHandler, per spec. So it has no handleEvent. However,
calling it (with the appropriate "this" object) should work fine.
-Boris