Hmm. You should never use exact matching for the user agent string.
FirePHP adds its signature in a way that *should* not affect any regex
parsers.
Do you have any examples of websites that have problems because of this?
> Additionally, recent versions of Firebug are "always-on", so there's
> no way to selectively not send the agent string.
I had to keep it always on due to some unreliable behavior with FB2.
This will be fixed for FF3 in the near future.
> Would it be possible to pass the FirePHP information through another
> request header, say, X-FirePHP-Agent=0.0.6.5? That would be great!
Possible yes. I am open to entertaining this change. Does anyone else
have any comments about this?
Christoph
I agree with this. I am going to leave it the way it is for now unless
anyone can provide any compelling reasons to change it.
Christoph
FirePHP is a bit different to other extensions as it extends the
browsers functionality to recognize additional data in a HTTP response.
I had looked carefully at how this additional capability could be
communicated to the server so that the server will only send the data
when supported.
The user-agent header is the proper place to indicate to the server what
the client can do according to the HTTP spec.
"The User-Agent request-header field contains information about the user
agent originating the request. This is for statistical purposes, the
tracing of protocol violations, and automated recognition of user agents
for the sake of tailoring responses to avoid particular user agent
limitations. User agents SHOULD include this field with requests. The
field can contain multiple product tokens (section 3.8) and comments
identifying the agent and any subproducts which form a significant part
of the user agent. By convention, the product tokens are listed in order
of their significance for identifying the application."
> I fully agree with you all that websites should not be doing exact
> matching. It's just that, given disabling an extension, or asking a
> website I regularly use to change some esoteric security software, and
> you can clearly see which will win out. :-/ Also, user agents tend to
I fully agree with you that asking websites to change their code is not
practical for FirePHP users. I will ensure that in 0.2 FirePHP will only
update the user-agent header when the NET panel is enabled. This will
allow you to use sites that don't treat the header properly as long as
you have your net panel disabled. I am making the assumption that any
site you need FirePHP for is a site you control and you can parse the
user-agent header properly.
> show up in logs, whereas custom headers usually do not. This helps
> browser privacy.
Right but as mentioned above, the user-agent header is the proper place
to indicate browser capabilities. Many other plugins do this as well.
Christoph
Many other plugins do it as well. Take a good look at your server logs.
Christoph
Right. Thanks for confirming this.
> However, I am hearing reports that FirePHP is not consistently
> including itself in the UA string which should be looked at, IMO.
It is adding itself as long as the extension is enabled. It should not
be adding itself if Firebug is disabled which FirePHP is not able to
consistently detect at this time. This will be fixed soon.
Christoph
Thanks for the detailed report. I'll have some time late next week to
take a good look at this and hopefully fix it properly then.
Christoph