[Webkit-unassigned] [Bug 18680] New: Favicon won't load when link tag preceded by script tag

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 22 13:24:48 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18680

           Summary: Favicon won't load when link tag preceded by script tag
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: simpsora at gmail.com


When referencing a favorite icon (favicon) via a link tag, Webkit doesn't
display the icon in the URL bar (or even try to load the icon) when the link
tag is preceded by a script tag in the source.  Instead, it reverts to the
default behavior of  requesting /favicon.ico.

This only happens when the script tag references an external resource with the
href attribute.  If it's a script block with inline script, the problem doesn't
occur.  It does not occur when the same script tag appears after the link tag
instead of before it.  It also does not occur when preceded by a style tag
referencing an external resource.

I've tested on the following platforms; they all exhibit the problem:
OS X 10.4.10 (PPC), Safari 2.0.4 (419.3)
OS X 10.5.2 (Intel), Safari 3.1.1 (5525.18)
OS X 10.5.2 (Intel), Nightly r32364

My test case uses XHTML 1.0 Transitional, whose DTD specifies that the order of
elements in the head section does not matter:

(from http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)
<!ENTITY % head.misc "(script|style|meta|link|object|isindex)*">

<!-- content model is %head.misc; combined with a single
     title and an optional base element in any order -->

<!ELEMENT head (%head.misc;,
     ((title, %head.misc;, (base, %head.misc;)?) |
      (base, %head.misc;, (title, %head.misc;))))>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list