Changeset 27223 in webkit


Ignore:
Timestamp:
Oct 29, 2007 3:31:09 AM (17 years ago)
Author:
ddkilzer
Message:

WebCore:

REGRESSION (r17701): Favicons should be viewable as image documents
<http://bugs.webkit.org/show_bug.cgi?id=15640>

Reviewed by Darin.

On Tiger and Leopard, the image/x-icon MIME type is not returned from
CGImageSourceCopyTypeIdentifiers(), so opening a URL to a favicon caused
the icon to be downloaded instead being displayed in an image document.

Test: fast/images/favicon-as-image.html

  • platform/MIMETypeRegistry.cpp: (WebCore::initialiseSupportedImageMIMETypes): Manually add image/x-icon to supportedImageMIMETypes and supportedImageResourceMIMETypes. Also fixed comment about the image/bmp MIME type since it applies to both Tiger and Leopard.

LayoutTests:

Test for: REGRESSION (r17701): Favicons should be viewable as image documents
<http://bugs.webkit.org/show_bug.cgi?id=15640>

Reviewed by Darin.

  • fast/images/favicon-as-image.html: Added.
  • fast/images/resources/favicon.ico: Added.
  • platform/mac/fast/images/favicon-as-image-expected.checksum: Added.
  • platform/mac/fast/images/favicon-as-image-expected.png: Added.
  • platform/mac/fast/images/favicon-as-image-expected.txt: Added.
Location:
trunk
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r27217 r27223  
     12007-10-29  David Kilzer  <ddkilzer@webkit.org>
     2
     3        Test for:  REGRESSION (r17701): Favicons should be viewable as image documents
     4        <http://bugs.webkit.org/show_bug.cgi?id=15640>
     5
     6        Reviewed by Darin.
     7
     8        * fast/images/favicon-as-image.html: Added.
     9        * fast/images/resources/favicon.ico: Added.
     10        * platform/mac/fast/images/favicon-as-image-expected.checksum: Added.
     11        * platform/mac/fast/images/favicon-as-image-expected.png: Added.
     12        * platform/mac/fast/images/favicon-as-image-expected.txt: Added.
     13
    1142007-10-28  Alexey Proskuryakov  <ap@webkit.org>
    215
  • trunk/WebCore/ChangeLog

    r27221 r27223  
     12007-10-29  David Kilzer  <ddkilzer@webkit.org>
     2
     3        REGRESSION (r17701): Favicons should be viewable as image documents
     4        <http://bugs.webkit.org/show_bug.cgi?id=15640>
     5
     6        Reviewed by Darin.
     7
     8        On Tiger and Leopard, the image/x-icon MIME type is not returned from
     9        CGImageSourceCopyTypeIdentifiers(), so opening a URL to a favicon caused
     10        the icon to be downloaded instead being displayed in an image document.
     11
     12        Test: fast/images/favicon-as-image.html
     13
     14        * platform/MIMETypeRegistry.cpp:
     15        (WebCore::initialiseSupportedImageMIMETypes): Manually add image/x-icon to
     16        supportedImageMIMETypes and supportedImageResourceMIMETypes.  Also fixed
     17        comment about the image/bmp MIME type since it applies to both Tiger and
     18        Leopard.
     19
    1202007-10-29  Maciej Stachowiak  <mjs@apple.com>
    221
  • trunk/WebCore/platform/MIMETypeRegistry.cpp

    r25157 r27223  
    6565    }
    6666    CFRelease(supportedTypes);
    67    
    68     // On Tiger, com.microsoft.bmp doesn't have a MIME type in the registry.
     67
     68    // On Tiger and Leopard, com.microsoft.bmp doesn't have a MIME type in the registry.
    6969    supportedImageMIMETypes->add("image/bmp");
    7070    supportedImageResourceMIMETypes->add("image/bmp");
    71    
     71
     72    // Favicons don't have a MIME type in the registry either.
     73    supportedImageMIMETypes->add("image/x-icon");
     74    supportedImageResourceMIMETypes->add("image/x-icon");
     75
    7276    //  We only get one MIME type per UTI, hence our need to add these manually
    7377    supportedImageMIMETypes->add("image/pjpeg");
Note: See TracChangeset for help on using the changeset viewer.