iEricZHENG / firephp

Automatically exported from code.google.com/p/firephp
0 stars 0 forks source link

navigator.userAgent unmodified #200

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by jausi...@11abacus.com on 24 Feb 2014 at 8:31

GoogleCodeExporter commented 8 years ago
Good catch. I'll make sure this makes it into a future version.

Original comment by christ...@christophdorn.com on 25 Feb 2014 at 11:16