<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>252263</bug_id>
          
          <creation_ts>2023-02-14 13:28:35 -0800</creation_ts>
          <short_desc>[GLib] Get rid of bundled xdgmime</short_desc>
          <delta_ts>2023-02-14 13:28:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1933580</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-14 13:28:35 -0800</bug_when>
    <thetext>This is more a goal than something we can do today. Source/ThirdParty/xdgmime is currently used only by MIMETypeRegistryXdg.cpp. We use two functions: xdg_mime_get_mime_type_from_file_name(), which can probably be replaced with one call to g_content_type_guess() with NULL data parameter, and xdg_mime_get_simple_globs(). To drop our bundled xdgmime we would need to expose a new GLib API to replace xdg_mime_get_simple_globs(). We could call it, say, g_content_type_get_preferred_extension(). Then we&apos;d only need our own bundled xdgmime when building against older GLib. (Of course, with newer GLib we&apos;d just wind up using GLib&apos;s bundled xdgmime instead, but that&apos;s still an improvement.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>