[Webkit-unassigned] [Bug 143953] New: [Curl] Favicons loaded from disc cache are ignored.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 20 10:23:53 PDT 2015


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

            Bug ID: 143953
           Summary: [Curl] Favicons loaded from disc cache are ignored.
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: peavo at outlook.com

When a favicon is loaded from the Curl disc cache, the icon data is thrown away. This happens because we give a 304 response, which makes the icon loader ignore the response:

void IconLoader::notifyFinished(CachedResource* resource)
{
    ASSERT(resource == m_resource);

    // If we got a status code indicating an invalid response, then lets
    // ignore the data and not try to decode the error page as an icon.
    auto* data = resource->resourceBuffer();
    int status = resource->response().httpStatusCode();
    if (status && (status < 200 || status > 299))
        data = nullptr;

We can solve this by responding with 200 OK.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150420/bf41ce14/attachment-0001.html>


More information about the webkit-unassigned mailing list