[Webkit-unassigned] [Bug 14824] REGRESSION(r14258): +setMIMETypesShownAsHTML has no effect if MIME type is text/* (works in Safari 2, doesn't work in Safari 3)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 13:55:18 PDT 2007


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





------- Comment #14 from beidson at apple.com  2007-08-02 13:55 PDT -------
Ugh, even more bugs found.

Running the following snippet - 
    NSLog(@"Before -\n%@", [WebView MIMETypesShownAsHTML]);
    [WebView setMIMETypesShownAsHTML:[[WebView MIMETypesShownAsHTML]
arrayByAddingObject:@"text/php"]];
    NSLog(@"After - \n%@", [WebView MIMETypesShownAsHTML]);

Results in the following output -
2007-08-02 13:53:33.198 Safari[14732:10b] Before -
(
    "text/html",
    "application/x-ftp-directory",
    "application/atom+xml",
    "multipart/x-mixed-replace",
    "application/xml",
    "application/xhtml+xml",
    "text/xsl",
    "text/xml",
    "image/svg+xml",
    "application/rss+xml",
    "application/x-webarchive",
    "application/x-javascript"
)
2007-08-02 13:53:33.198 Safari[14732:10b] After - 
(
    "application/atom+xml",
    "image/vnd.adobe.photoshop",
    "image/targa",
    "multipart/x-mixed-replace",
    "image/gif",
    "application/xml",
    "image/pict",
    "image/x-quicktime",
    "image/sgi",
    "image/fpx",
    "text/xsl",
    "image/bmp",
    "application/rss+xml",
    "image/png",
    "image/jp2",
    "image/jpeg",
    "application/x-webarchive",
    "text/html",
    "application/x-ftp-directory",
    "image/x-canon-crw",
    "application/xhtml+xml",
    "image/x-xbitmap",
    "text/xml",
    "image/tiff",
    "image/svg+xml",
    "text/php",
    "image/pjpeg",
    "application/x-javascript"
)

All of these additional types are magically being added to the "shownAsHTML"
list by the mere procedure of setting that list


-- 
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