[Webkit-unassigned] [Bug 59697] New: [Soup] does not load css stylesheets without content-type

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 28 06:42:19 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=59697

           Summary: [Soup] does not load css stylesheets without
                    content-type
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://open.mapquest.co.uk/
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arno at renevier.net


Hi,
when a css stylesheet has no content-type, and a random file extension (such as php), that css sheet is not loaded. This happens for example with http://open.mapquest.co.uk/ : site fails with webkit/gtk but fails with other browsers.

In CachedCSSStyleSheet::canUseSheet, there is following comment:
    // Note that we grab the Content-Type
    // header directly because we want to see what the value is BEFORE content
    // sniffing.
So, it looks like Content-Type header should match official Content-Type, but soup backend replaces it with the sniffed one.
So may be, sniffed Content-Type should be kept in a separate variable, and not be injected into soup message headers.

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



More information about the webkit-unassigned mailing list