mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 01:55:44 +00:00
Bug 656708: Channel.URI is undefined. r=philiKON
This commit is contained in:
parent
e614da55de
commit
88c452c9ae
@ -545,8 +545,9 @@ ChannelListener.prototype = {
|
|||||||
this.abortTimer.clear();
|
this.abortTimer.clear();
|
||||||
|
|
||||||
let success = Components.isSuccessCode(status);
|
let success = Components.isSuccessCode(status);
|
||||||
|
let uri = channel && channel.URI && channel.URI.spec || "<unknown>";
|
||||||
this._log.trace("Channel for " + channel.requestMethod + " " +
|
this._log.trace("Channel for " + channel.requestMethod + " " +
|
||||||
channel.URI.spec + ": isSuccessCode(" + status + ")? " +
|
uri + ": isSuccessCode(" + status + ")? " +
|
||||||
success);
|
success);
|
||||||
|
|
||||||
if (this._data == '')
|
if (this._data == '')
|
||||||
@ -563,7 +564,7 @@ ChannelListener.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._log.trace("Channel: flags = " + channel.loadFlags +
|
this._log.trace("Channel: flags = " + channel.loadFlags +
|
||||||
", URI = " + channel.URI.spec +
|
", URI = " + uri +
|
||||||
", HTTP success? " + channel.requestSucceeded);
|
", HTTP success? " + channel.requestSucceeded);
|
||||||
this._onComplete(null, this._data);
|
this._onComplete(null, this._data);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user