<?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>186594</bug_id>
          
          <creation_ts>2018-06-13 09:33:14 -0700</creation_ts>
          <short_desc>[WPE] Pack inspector resources in a .gresource file instead of a shared library</short_desc>
          <delta_ts>2024-10-18 14:33:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=193826</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=280512</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=281298</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=281771</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>186588</dependson>
          <blocked>280561</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1432671</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-06-13 09:33:14 -0700</bug_when>
    <thetext>For the WPE port the inspector resources are bundled using for loading with
GResource, built into an shared library which contains the bundled data,
and finally loaded on-demand using GModule (which ends up using “dlopen”)
when first needed.

There are no other contents in the shared library, so we could as
well generate a “*.gresource” data file instead (which is a GVDB
file), and load it using “g_resource_load” (instead of using GModule).
There are a few small advantages:

 - Disk space savings. GDVB files are slightly more compact than
   a shared library, and are mmap&apos;d when loaded.

 - Loading the data does not involve the dynamic linker (no need for
   parsing an executable object, resolving symbols, etc.).

 - No intermediate build steps: the XML manifest gets built into the
   .gresource data file directly (compare with the current approach,
   which is: XML manifest → C source → object file → shared library).

While there&apos;s nothing particularly important in the list above, it
still would be nicer to use a data file instead of a shared library
for the inspector resources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432675</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-06-13 09:36:13 -0700</bug_when>
    <thetext>FWIW, the .gresource files being data, I understand the file
would be installed into “${DATADIR}/wpe-webkit-${VERSION}”
instead of “${LIBDIR}/wpe-webkit-${VERSION}” (as currently done).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060172</commentid>
    <comment_count>2</comment_count>
    <who name="">lisiwei</who>
    <bug_when>2024-09-13 17:42:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/webkit/pull/33654</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063310</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-26 00:03:42 -0700</bug_when>
    <thetext>Committed 284269@main (8ceb1da47e75): &lt;https://commits.webkit.org/284269@main&gt;

Reviewed commits have been landed. Closing PR #33654 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>