Export to GitHub

firephp - issue #200

navigator.userAgent unmodified


Posted on Feb 24, 2014 by Happy Dog

What versions and operating system are you using?

OS: Windows Vista Firefox: 27.0.1 Firebug: 1.12.6 FirePHP Server Library: N/A FirePHP Extension: 0.7.4

What is the problem?

When the option "Modify User-Agent Header" is turned on, the change isn't reflected in the Javascript property navigator.userAgent; . This creates a discrepancy between value seen by Javascript running in the web browser and data seen by a web server.

What steps will reproduce the problem? 1. Enable "Modify User-Agent Header" option 2. Javascript code: alert(navigator.userAgent); 3. Check HTTP Header User-Agent with a server-side script.

What is the expected output? What do you see instead?

alert(navigator.userAgent) should include the FirePHP/0.7.4 in the value, as of that version, it's not included. It's only showing in the HTTP header.

Comment #1

Posted on Feb 25, 2014 by Happy Camel

Good catch. I'll make sure this makes it into a future version.

Status: Accepted

Labels:
Type-Defect Priority-Medium