Bug 170050 - [XDG] MIMETypeRegistry::getMIMETypeForExtension should return a null/empty string when mime type is unknown
Summary: [XDG] MIMETypeRegistry::getMIMETypeForExtension should return a null/empty st...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk, LayoutTestFailure
Depends on:
Blocks:
 
Reported: 2017-03-24 06:09 PDT by Carlos Garcia Campos
Modified: 2017-03-25 01:21 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.75 KB, patch)
2017-03-24 06:13 PDT, Carlos Garcia Campos
mcatanzaro: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2017-03-24 06:09:37 PDT
That's what the callers expect, but we alre always returning XDG_MIME_TYPE_UNKNOWN which is application/octet-stream. This is causing several test failures
Comment 1 Carlos Garcia Campos 2017-03-24 06:13:21 PDT
Created attachment 305278 [details]
Patch
Comment 2 Carlos Garcia Campos 2017-03-25 01:21:12 PDT
Committed r214397: <http://trac.webkit.org/changeset/214397>