After <http://trac.webkit.org/changeset/67355> getMIMETypeForExtension() returns an empty string instead of "application/octet-stream" for unsupported extensions. We shouldn't add this to the list of supported types. We can also remove the logic in initializeSupportedImageMIMETypes() and initializeSupportedImageMIMETypesForEncoding() that cleans out "application/octet-stream" from the list of supported types.
Created attachment 67380 [details] Proposed patch
Comment on attachment 67380 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=67380&action=prettypatch Any tests for this?
Created attachment 67389 [details] Proposed patch v2 (r=kenneth) Don't know how to test this since I'd need to call WebCore internals. Added comment to ChangeLog about this fixing a crash in initializeMIMETypeRegistry().
Created attachment 67390 [details] Proposed patch v3 (r=kenneth) Oops, remove junk from patch.
Comment on attachment 67390 [details] Proposed patch v3 (r=kenneth) Clearing flags on attachment: 67390 Committed r67375: <http://trac.webkit.org/changeset/67375>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/67375 might have broken Qt Linux Release The following changes are on the blame list: http://trac.webkit.org/changeset/67376 http://trac.webkit.org/changeset/67375
Revision r67375 cherry-picked into qtwebkit-2.1.x with commit 495f6f1 <http://gitorious.org/webkit/qtwebkit/commit/495f6f1>