<?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>300684</bug_id>
          
          <creation_ts>2025-10-14 01:50:34 -0700</creation_ts>
          <short_desc>REGRESSION(301229@main): [WPE] Broke the build</short_desc>
          <delta_ts>2025-10-21 14:37:56 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Philippe Normand">philn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>jmurphy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2150778</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 01:50:34 -0700</bug_when>
    <thetext>/var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/WebKitWebExtension.cpp:492:110: error: too few arguments to function call, expected 2, have 1
  492 |         newResources.add(it.key, API::Data::createWithoutCopying(std::move&lt;WTF::CheckMoveParameter&gt;(it.value)));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                             ^
/var/home/phil/WebKit/Source/WebKit/Shared/API/APIData.h:51:22: note: &apos;createWithoutCopying&apos; declared here
   51 |     static Ref&lt;Data&gt; createWithoutCopying(std::span&lt;const uint8_t&gt; bytes, FreeDataFunction&amp;&amp; freeDataFunction)
      |                      ^                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/WebKitWebExtension.cpp:778:18: error: no member named &apos;icon&apos; in &apos;WebCore::Icon&apos;
  778 |     return icon-&gt;icon();
      |            ~~~~~~^
/var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/WebKitWebExtension.cpp:806:18: error: no member named &apos;icon&apos; in &apos;WebCore::Icon&apos;
  806 |     return icon-&gt;icon();
      |            ~~~~~~^
3 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150779</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 01:57:47 -0700</bug_when>
    <thetext>In file included from /var/home/phil/WebKit/WebKitBuild/WPE/Release/DerivedSources/WebKit/unified-sources/UnifiedSource-50d0d8dd-13.cpp:5:
/var/home/phil/WebKit/Source/WebKit/Shared/Extensions/wpe/WebExtensionUtilitiesWPE.cpp:31:10: fatal error: &apos;WPEToplevelPrivate.h&apos; file not found
   31 | #include &quot;WPEToplevelPrivate.h&quot;
      |          ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150780</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 02:01:13 -0700</bug_when>
    <thetext>In file included from /var/home/phil/WebKit/WebKitBuild/WPE/Release/DerivedSources/WebKit/unified-sources/UnifiedSource-50d0d8dd-13.cpp:5:
/var/home/phil/WebKit/Source/WebKit/Shared/Extensions/wpe/WebExtensionUtilitiesWPE.cpp:43:66: error: use of undeclared identifier &apos;toplevel&apos;
   43 |         auto* display = WPE_DISPLAY_DRM(wpe_toplevel_get_display(toplevel));
      |                                                                  ^
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150786</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 02:19:04 -0700</bug_when>
    <thetext>mold: error: undefined symbol: WebKit::WebExtension::recordError(WTF::Ref&lt;API::Error, WTF::RawPtrTraits&lt;API::Error&gt;, WTF::DefaultRefDerefTraits&lt;API::Error&gt; &gt;)
&gt;&gt;&gt; referenced by UnifiedSource-88d1702b-25.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp.o:(WebKit::WebExtension::parseManifest(WTF::StringView))
&gt;&gt;&gt; referenced by UnifiedSource-88d1702b-25.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp.o:(WebKit::WebExtension::parseManifest(WTF::StringView))
&gt;&gt;&gt; referenced by UnifiedSource-88d1702b-25.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp.o:(WebKit::WebExtension::parseManifest(WTF::StringView))
&gt;&gt;&gt; referenced 44 more times
mold: error: undefined symbol: WebKit::WebExtension::WebExtension(_GFile*, WTF::RefPtr&lt;API::Error, WTF::RawPtrTraits&lt;API::Error&gt;, WTF::DefaultRefDerefTraits&lt;API::Error&gt; &gt;&amp;)
&gt;&gt;&gt; referenced by WebKitWebExtension.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/glib/WebKitWebExtension.cpp.o:(webkitWebExtensionInitableInit(_GInitable*, _GCancellable*, _GError**))
mold: error: undefined symbol: WebKit::WebExtension::iconForPath(WTF::String const&amp;, WebCore::FloatSize, std::optional&lt;double&gt;)
&gt;&gt;&gt; referenced by UnifiedSource-88d1702b-25.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp.o:(WebKit::WebExtension::populateActionPropertiesIfNeeded())
mold: error: undefined symbol: WebKit::WebExtension::bestIcon(WTF::RefPtr&lt;WTF::JSONImpl::Object, WTF::RawPtrTraits&lt;WTF::JSONImpl::Object&gt;, WTF::DefaultRefDerefTraits&lt;WTF::JSONImpl::Object&gt; &gt;, WebCore::FloatSize, WTF::Function&lt;void (WTF::Ref&lt;API::Error, WTF::RawPtrTraits&lt;API::Error&gt;, WTF::DefaultRefDerefTraits&lt;API::Error&gt; &gt;)&gt; const&amp;)
&gt;&gt;&gt; referenced by UnifiedSource-88d1702b-25.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp.o:(WebKit::WebExtension::bestIconForManifestKey(WTF::JSONImpl::Object const&amp;, WTF::String const&amp;, WebCore::FloatSize, WTF::HashMap&lt;WTF::String, mpark::variant&lt;WTF::RefPtr&lt;WebCore::Icon, WTF::RawPtrTraits&lt;WebCore::Icon&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Icon&gt; &gt;, WTF::Vector&lt;double, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; &gt;, WTF::DefaultHash&lt;WTF::String&gt;, WTF::HashTraits&lt;WTF::String&gt;, WTF::HashTraits&lt;mpark::variant&lt;WTF::RefPtr&lt;WebCore::Icon, WTF::RawPtrTraits&lt;WebCore::Icon&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Icon&gt; &gt;, WTF::Vector&lt;double, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; &gt; &gt;, WTF::HashTableTraits, (WTF::ShouldValidateKey)1, WTF::FastMalloc&gt;&amp;, WebKit::WebExtension::Error, WTF::String const&amp;))
mold: error: undefined symbol: WebKit::WebExtension::resourceDataForPath(WTF::String const&amp;, WebKit::WebExtension::CacheResult, WebKit::WebExtension::SuppressNotFoundErrors)
&gt;&gt;&gt; referenced by UnifiedSource-88d1702b-25.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp.o:(WebKit::WebExtension::resourceStringForPath(WTF::String const&amp;, WebKit::WebExtension::CacheResult, WebKit::WebExtension::SuppressNotFoundErrors))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150787</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 02:29:52 -0700</bug_when>
    <thetext>WIP in https://github.com/philn/WebKit/tree/eng/300684</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150788</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 02:30:59 -0700</bug_when>
    <thetext>Jamie, can you finish this patch please? I had to stop at the link errors, I think glib-specific parts of Source/WebKit/UIProcess/Extensions/gtk/WebExtensionGtk.cpp should be moved to a dedicated cpp file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150797</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-10-14 03:12:13 -0700</bug_when>
    <thetext>Also, WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WK_WEB_EXTENSIONS PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) is missing in OptionsWPE.cmake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150801</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2025-10-14 03:27:10 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #6)
&gt; Also, WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WK_WEB_EXTENSIONS PRIVATE
&gt; ${ENABLE_EXPERIMENTAL_FEATURES}) is missing in OptionsWPE.cmake

Indeed, this is the reason why the EWS didn&apos;t catch the issues, I am in favor of adding it for the WPE port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150861</commentid>
    <comment_count>8</comment_count>
    <who name="Jamie Murphy">jmurphy</who>
    <bug_when>2025-10-14 08:01:38 -0700</bug_when>
    <thetext>Thanks for all the work here, yeah, I&apos;ll finish the patch and add the WKWebExtensions feature to OptionsWPE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2151310</commentid>
    <comment_count>9</comment_count>
    <who name="Jamie Murphy">jmurphy</who>
    <bug_when>2025-10-15 08:25:12 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52394</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153129</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-21 14:37:53 -0700</bug_when>
    <thetext>Committed 301906@main (224689d07870): &lt;https://commits.webkit.org/301906@main&gt;

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

    </bug>

</bugzilla>