[Webkit-unassigned] [Bug 202321] [GTK] Web Inspector: page error with shared-mime-info 1.14

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 21 01:31:46 PDT 2019


--- Comment #24 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to Carlos Alberto Lopez Perez from comment #23)
> (In reply to Bastien Nocera from comment #22)
> > Anyway, I don't think that carrying on the discussion here will have any
> > effect. If there are identification bugs, please file MRs against
> > shared-mime-info to extend the test suite to show those.
> Ok. Filed: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/120

And it's now fixed, right? I just want to clarify how the content type guess anyway.

1- For non-local files, the type is only sniffed when sniff policy allows it (it's the default, though). It's done by libsoup, using its own impl, not shared-mime-info.

2- For local files, libsoup gets the content type using G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE. When we don't get a content type from libsoup we try with the WebKit MIMETypeRegistry (which tries to get the type from the file extension using xdg_mime_get_mime_type_from_file_name).

So, I don't think WebKit i using shared-mimo-info directly, it's libsoup using G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, which ends up suing g_content_type_guess(), for local files.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191021/cf00c6fa/attachment.html>

More information about the webkit-unassigned mailing list