[Webkit-unassigned] [Bug 7476] WebKit does not handle invalid MIME types for SVG

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat Aug 12 16:11:24 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7476


darin at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #10004|review?                     |review-
               Flag|                            |




------- Comment #7 from darin at apple.com  2006-08-12 16:11 PDT -------
(From update of attachment 10004)
Looks generally fine, but this won't compile:

+    return (mimeType == "image/svg+xml");
+         || mimeType == "image/svg-xml" // invalid, Adobe SVG Viewer
compatibility
+         || mimeType == "image/xml+svg"); // invalid, Adobe SVG Viewer
compatibility

Also, we should have some tests of these MIME types -- we have http tests that
can test this sort of thing.

-            d->m_decoder->setEncodingName(d->m_encoding.latin1(),
-                d->m_haveEncoding ? Decoder::UserChosenEncoding :
Decoder::EncodingFromHTTPHeader);
+            d->m_decoder->setEncodingName(d->m_encoding.latin1(),
d->m_haveEncoding ? Decoder::UserChosenEncoding :
Decoder::EncodingFromHTTPHeader);

The above does not look like an improvement. The old formatting looks better.


-- 
Configure bugmail: http://bugzilla.opendarwin.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