Two HTTP requests are issued for localhost on refresh in FF4
Posted: Thu May 19, 2011 12:35 pm
When the page is reloaded by pressing F5 or the refresh button next to the location bar, two HTTP requests are issued for localhost. This happens regardless of the whitelist settings, the next configurations are confirmed to cause issues:
- Whitelist localhost
- Whitelist localhost:8000
- Allow JS globally
I first saw this behavior in the Developer console of Fx4, but have isolated the issue to refreshing. I've tried a clean FF profile with all extensions disabled too, resulting in:
- NoScript disabled: expected result: / , /favicon.ico , /favicon.ico [refresh] , /
- NoScript enabled: actual result: / , /favicon.ico , /favicon.ico [refresh] , /, /
After further investigation, the bug occurs only if ABE is enabled
Browser: Firefox 4.0.1 (from Ubuntu Natty repository)
NoScript: 2.1.0.3
Not affected: Firefox 3.6.17 (from firefox.com), running on Ubuntu Lucid
Test case:
First discovered while using the SimpleHTTPServer module from Python:
The last two lines come from one refresh action.
Using netcat (the HTTP response should be in the file named "response"):
Two identical HTTP requests are send to the server.
- Whitelist localhost
- Whitelist localhost:8000
- Allow JS globally
I first saw this behavior in the Developer console of Fx4, but have isolated the issue to refreshing. I've tried a clean FF profile with all extensions disabled too, resulting in:
- NoScript disabled: expected result: / , /favicon.ico , /favicon.ico [refresh] , /
- NoScript enabled: actual result: / , /favicon.ico , /favicon.ico [refresh] , /, /
After further investigation, the bug occurs only if ABE is enabled
Browser: Firefox 4.0.1 (from Ubuntu Natty repository)
NoScript: 2.1.0.3
Not affected: Firefox 3.6.17 (from firefox.com), running on Ubuntu Lucid
Test case:
First discovered while using the SimpleHTTPServer module from Python:
Code: Select all
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
localhost - - [19/May/2011 14:31:55] "GET / HTTP/1.1" 200 -
localhost - - [19/May/2011 14:31:55] code 404, message File not found
localhost - - [19/May/2011 14:31:55] "GET /favicon.ico HTTP/1.1" 404 -
localhost - - [19/May/2011 14:31:56] code 404, message File not found
localhost - - [19/May/2011 14:31:56] "GET /favicon.ico HTTP/1.1" 404 -
localhost - - [19/May/2011 14:31:59] "GET / HTTP/1.1" 200 -
localhost - - [19/May/2011 14:31:59] "GET / HTTP/1.1" 200 -
Using netcat (the HTTP response should be in the file named "response"):
Code: Select all
$ while [ -e response ]; do sudo nc -l -p 80 < response ;done