From 065e1ea7660a7ee5c5952b72814d0ac77e7e3d74 Mon Sep 17 00:00:00 2001 From: Jason Duell Date: Thu, 3 May 2012 00:35:55 -0700 Subject: [PATCH] Bug 747215 - Ensure redirect pathways always call both OnStart/OnStopRequest. r=biesi --- netwerk/test/unit/head_channels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/test/unit/head_channels.js b/netwerk/test/unit/head_channels.js index 42002a39d31..b23fc9e169b 100644 --- a/netwerk/test/unit/head_channels.js +++ b/netwerk/test/unit/head_channels.js @@ -128,7 +128,7 @@ ChannelListener.prototype = { onStopRequest: function(request, context, status) { try { var success = Components.isSuccessCode(status); - if (!this._got_onstartrequest && success) + if (!this._got_onstartrequest) do_throw("onStopRequest without onStartRequest event!"); if (this._got_onstoprequest) do_throw("Got second onStopRequest event!");