[Webkit-unassigned] [Bug 234234] New: Dead code in LinkIconCollector.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 13 04:12:25 PST 2021


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

            Bug ID: 234234
           Summary: Dead code in LinkIconCollector.cpp
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: karl+webkit at la-grange.net

This seems wrong.
https://github.com/WebKit/WebKit/blob/102a6d5be26fa5eba220703239dda452a0940d0b/Source/WebCore/html/LinkIconCollector.cpp#L53-L57

    // Apple Touch icons always come first.
    if (a.type == LinkIconType::Favicon && b.type != LinkIconType::Favicon)
        return 1;
    if (a.type == LinkIconType::Favicon && b.type != LinkIconType::Favicon)
        return -1;

should probably be

    // Apple Touch icons always come first.
    if (a.type == LinkIconType::Favicon && b.type != LinkIconType::Favicon)
        return 1;
    if (b.type == LinkIconType::Favicon && a.type != LinkIconType::Favicon)
        return -1;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211213/9b38fa83/attachment.htm>


More information about the webkit-unassigned mailing list