Re: "abort" listener not executed for XHR

2012-11-22 Thread Jan Honza Odvarko
On Nov 23, 5:36 am, Boris Zbarsky wrote: > On 11/22/12 3:48 AM, Jan Honza Odvarko wrote: > > > I can create a simple extension, but it'll require having patch from > > bug 800799 applied. > > That's fine.  I'm pretty good at applying patches.  ;) Excellent ;-) > > Should I create a new bug report

Re: "abort" listener not executed for XHR

2012-11-22 Thread Boris Zbarsky
On 11/22/12 3:48 AM, Jan Honza Odvarko wrote: I can create a simple extension, but it'll require having patch from bug 800799 applied. That's fine. I'm pretty good at applying patches. ;) Should I create a new bug report for this? Please! -Boris _

Re: "abort" listener not executed for XHR

2012-11-22 Thread Jan Honza Odvarko
On Nov 21, 5:53 pm, Boris Zbarsky wrote: > On 11/21/12 11:31 AM, Jan Honza Odvarko wrote: > > > Am I doing something wrong? > > When is the addEventListener call made? There are two scenarios: 1) The listener is appended when "http-on-modify-request" is sent. It works in 17, but broken now becaus

Re: "abort" listener not executed for XHR

2012-11-21 Thread Boris Zbarsky
On 11/21/12 11:31 AM, Jan Honza Odvarko wrote: Am I doing something wrong? When is the addEventListener call made? Apart from that, nothing obviously wrong. A testcase that shows the problem would be helpful. -Boris ___ dev-platform mailing list

"abort" listener not executed for XHR

2012-11-21 Thread Jan Honza Odvarko
I am registering a listener for "abort" event in XHR xhr.addEventListener("abort", onAbort, false); but it isn't executed in the following case: var request = new XMLHttpRequest(); request.open("POST", "issue2462.php", true); request.send(null); request.abort(); nsIEventListene