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

This commit is contained in:
Jason Duell 2012-05-03 00:35:55 -07:00
parent 2026a449d3
commit 065e1ea766

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