Closed Bug 317157 Opened 19 years ago Closed 16 years ago

favicon.ico not retrieved for url "http://localhost"; succeeds for "http://127.0.0.1"

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED INCOMPLETE

People

(Reporter: cmatech, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 On a valid and working (locally hosted) website: when a users enters the url "http://localhost" there is no corresponding request for "http://localhost/favicon.ico"; However if "http://127.0.0.1" or "http://{local machine name}" is requested then favicon.ico *is* requested, returned and displayed (location & tool bar). I can verify this by watching my apache access log and monitoring the GET requests. In *ALL* cases the html content is requested, sent and displayed properly. Curiously, in the access log, apache shows a requesting client IP (IPv6) address of ::1 when "localhost" is used; but IPv4 "127.0.0.1" or the IPv4 address of the resolved local machine (example: 172.16.0.2) when "http://127.0.0.1" or "http://{local machine name}" are used respectively. Reproducible: Always Steps to Reproduce: 1. request a valid and functioning locally hosted website that can correctly deliver a valid favicon.ico (image/x-icon) by using url of: http://localhost Actual Results: GET /favicon.ico is not sent by browser. Expected Results: made a GET /favicon.ico request local system: Mac OS X 10.4.3; 1.2 GHz PowerPC G4; 1 GB Ram local http server: Apache/2.0.55 (Unix) DAV/2 mod_python/3.1.3 Python/2.4.1
I know it's old by now, but it shows up for me on Windows Vista. Does the problem still exist on Macs? If not, I think this can be closed?
No reply, INCOMPLETE. Please report back with the above steps.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
This bug occurs in Firefox 50.1.0 on Linux. Ran into it today while testing locally. 127.0.0.1 grabs the favicon just fine but using localhost does not. In my code, I'm using: <link rel="shortcut icon" type="image/png" href="/assets/favicon.ico"/>
The (In reply to Stephen Waters from comment #3) You should probably have type="image/x-icon" because you are referring to a .ico file not png. However I have tested with both file types and the bug still exists. The tab displays the favicon but not the bookmark.
Confirmed on Linux Mint 18 (Sarah)
this is still happening in version 60.0.1 (64 bit) on windows 7

Still happening in version 64.0

You need to log in before you can comment on or make changes to this bug.