зеркало из https://github.com/mozilla/pjs.git
Bug 656708: Channel.URI is undefined. r=philiKON
This commit is contained in:
Родитель
ff9899a8e6
Коммит
da334d4f7c
|
@ -545,8 +545,9 @@ ChannelListener.prototype = {
|
|||
this.abortTimer.clear();
|
||||
|
||||
let success = Components.isSuccessCode(status);
|
||||
let uri = channel && channel.URI && channel.URI.spec || "<unknown>";
|
||||
this._log.trace("Channel for " + channel.requestMethod + " " +
|
||||
channel.URI.spec + ": isSuccessCode(" + status + ")? " +
|
||||
uri + ": isSuccessCode(" + status + ")? " +
|
||||
success);
|
||||
|
||||
if (this._data == '')
|
||||
|
@ -563,7 +564,7 @@ ChannelListener.prototype = {
|
|||
}
|
||||
|
||||
this._log.trace("Channel: flags = " + channel.loadFlags +
|
||||
", URI = " + channel.URI.spec +
|
||||
", URI = " + uri +
|
||||
", HTTP success? " + channel.requestSucceeded);
|
||||
this._onComplete(null, this._data);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче