Small error appearing in the firebug console, because this.HttpChannel is undefined or the name is undefined.

26 views
Skip to first unread message

peter_lenahan

unread,
Jul 15, 2009, 10:02:27 PM7/15/09
to httpfox
This is a nice addon, I wish I was giving you positive feedback. It is
a nice tool.
Thanks for your efforts.
I am running the following configuration:

Windows XP 64, Firefox 3.0.11 firebug 1.1.3, In httpfox version 0.8.4

In the file:
C:\Documents and Settings\pl00291\Application Data\Mozilla\Firefox
\Profiles\ttwe30fp.default\extensions\{4093c4de-454a-4329-8aff-
c6b0b123c386}\components\HttpFoxService.js
Around line 1730
Please add a test for an undefined or null HttpChannel and
HttpChannel.name before referencing the "name" object. I don't know
how to reproduce this issue.
It just appeared in the error console of firebug, so I fixed these
lines.


init: function()
{
this.Timestamp = (new Date()).getTime();

// get properties from httpchannel/request object
this.Status = this.HttpChannel.status ? this.HttpChannel.status :
null;
this.Url = this.HttpChannel.URI ? this.HttpChannel.URI.asciiSpec :
null;
this.URIScheme = this.HttpChannel.URI ?
this.HttpChannel.URI.scheme : null;
this.URIPath = this.HttpChannel.URI ? this.HttpChannel.URI.path :
null;
if (this.HttpChannel != undefined &&
this.HttpChannel != null &&
this.HttpChannel.name != undefined ) { // PJL
2009-07-15
this.Name = this.HttpChannel.name ?
this.HttpChannel.name : null;
}
else {
this.Name = null;
}

Martin Theimer

unread,
Jul 16, 2009, 3:22:09 AM7/16/09
to httpfox
hi,

thanks for the report!
i will look into it.

br,
martin
Reply all
Reply to author
Forward
0 new messages