[Webkit-unassigned] [Bug 14824] REGRESSION: +setMIMETypesShownAsHTML has no effect when loading local files (works in Safari 2, doesn't work in Safari 3)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 31 05:23:41 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14824
mrowe at apple.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mrowe at apple.com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |NeedsRadar
------- Comment #2 from mrowe at apple.com 2007-07-31 05:23 PDT -------
This was broken in r14258 with the switch to handling plain text files in
WebCore. DOMImplementation::createDocument checks whether the resource's mime
type should be displayed as a plain text document using:
bool DOMImplementation::isTextMIMEType(const String& mimeType)
{
if (mimeType == "application/x-javascript" ||
(mimeType.startsWith("text/") && mimeType != "text/html" &&
mimeType != "text/xml" && mimeType != "text/xsl"))
return true;
return false;
}
MIME types not recognized as text, images, or plugins, are treated as HTML.
This is clearly not aware of any MIME types registered in WebKit via +[WebView
setMIMETypesShownAsHTML:], so any MIME type starting with "text/" will be
displayed as plain text. +setMIMETypesShownAsHTML: needs to somehow be hooked
into the logic of DOMImplementation::createDocument.
--
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