Bug 747215: Ensure redirect pathways always call both OnStart/OnStopRequest. r=biesi

This commit is contained in:
Jason Duell 2012-06-05 23:59:05 -07:00
parent 81c6e2d90c
commit 78dd9bf434

View File

@ -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!");