Closed Bug 279004 Opened 20 years ago Closed 20 years ago

fix link to favicon

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: annevk, Assigned: annevk)

References

()

Details

Attachments

(1 file, 1 obsolete file)

The following piece of HTML should be removed from all pages:

 <link rel="icon" href="/images/favicon.png" type="image/png">

Now we have a favicon.ico in the root of domain
(<https://addons.update.mozilla.org/favicon.ico>, see bug 278995) this is not
needed anymore. (UAs always look in the root of the domain first.) Besides, it
links to a file that does not exist.
then add that file. don't assume update will *always* be at the root of a domain
to provide a favicon.ico (FYI, that favicon isn't in the update tree anyways,
its server-side only.) The HTML should not be removed, as IIRC, that's the
perferred way to introduce a favicon. :-)
update HAS to be at the root of the domain.  The code forces it by using
absolute urls.  About 80, by someone's count last night.
(In reply to comment #1)
No, all popular browsers always request a favicon.ico at the root of the domain.
You can use HTML if it is located somewhere else although you will still get a
lot of requests for /favicon.ico. Now it is located there, nothing else is
needed anymore.

and there's harm in doing both? seriously. heh.

Of course, leave it to standards to break themselves by giving a method of
adding a favicon then acting like you shouldn't use it. heh. (BTW, that line is
also following what mozilla.org itself uses. is this another case of
special-casing update to be stupid on? ;-) )
mozilla.org should probably have its own bug.

Anyway, we found out yesterday that the favicon that was linked from the HTML
was broken and that a file /favicon.ico existed, albeit with the wrong MIME type.

Since that was fixed there is no need for this line of HTML. It does not do harm
to have it but it can simply be omitted.
Attached patch patch (obsolete) — Splinter Review
This fixes both this bug and bug 258478.
Assignee: Bugzilla-alanjstrBugs → bug
Status: NEW → ASSIGNED
Attachment #171866 - Flags: first-review?(Bugzilla-alanjstrBugs)
Comment on attachment 171866 [details] [diff] [review]
patch

Firefox checks for the <link> version first, instead of hammering the server. 
See bug 204393 for details.
Attachment #171866 - Flags: first-review?(Bugzilla-alanjstrBugs) → first-review-
Attached patch patch #2Splinter Review
Attachment #171866 - Attachment is obsolete: true
Attachment #171868 - Flags: first-review?(mconnor)
Attachment #171868 - Flags: first-review?(mconnor) → first-review+
Target Milestone: 1.0 → 1.1
I un-bit-rotted the patch and checked it in.

Trunk:
Checking in mozilla/webtools/update/core/inc_header.php;
/cvsroot/mozilla/webtools/update/core/inc_header.php,v  <--  inc_header.php
new revision: 1.9; previous revision: 1.8
done

Branch:
Checking in mozilla/webtools/update/core/inc_header.php;
/cvsroot/mozilla/webtools/update/core/inc_header.php,v  <--  inc_header.php
new revision: 1.6.2.2; previous revision: 1.6.2.1
done

Not resolving bug 258478 - someone who's familiar with the bug can confirm that
it is fixed.
Blocks: 258478
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: remove link to favicon → fix link to favicon
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: