<?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>312769</bug_id>
          
          <creation_ts>2026-04-20 04:45:50 -0700</creation_ts>
          <short_desc>REGRESSION(306842@main): [WPE] Build with ENABLE_WPE_PLATFORM=OFF fails</short_desc>
          <delta_ts>2026-04-20 23:50:49 -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=306993</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2202202</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-04-20 04:45:50 -0700</bug_when>
    <thetext>Found while trying to complete the distcheck for the 2.53.1 release, which makes a non-developer, release build:

---- 8&lt; ---- 8&lt; ----

In file included from /sdk/webkit/WebKitBuild/WPE/Release/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-32.cpp:1:
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp: In constructor ‘WebKit::AcceleratedSurface::AcceleratedSurface(WebKit::WebPage&amp;, WTF::Function&lt;void()&gt;&amp;&amp;, RenderingPurpose, bool)’:
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:116:68: error: ‘class WebCore::Settings’ has no member named ‘hardwareAccelerationEnabled’
  116 |     , m_hardwareAccelerationEnabled(webPage.corePage()-&gt;settings().hardwareAccelerationEnabled())
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:120:25: error: ‘usesGL’ was not declared in this scope
  120 |     , m_useExplicitSync(usesGL() &amp;&amp; useExplicitSync())
      |                         ^~~~~~
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp: In constructor ‘WebKit::AcceleratedSurface::SwapChain::SwapChain(WebKit::AcceleratedSurface&amp;)’:
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:603:12: error: enumeration value ‘Surfaceless’ not handled in switch [-Werror=switch]
  603 |     switch (display.type()) {
      |            ^
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:603:12: error: enumeration value ‘GBM’ not handled in switch [-Werror=switch]
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp: In member function ‘void WebKit::AcceleratedSurface::didRenderFrame()’:
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:1055:9: error: ‘usesGL’ was not declared in this scope
 1055 |     if (usesGL())
      |         ^~~~~~
In file included from /sdk/webkit/WebKitBuild/WPE/Release/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-32.cpp:6:
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/NonCompositedFrameRenderer.cpp: In member function ‘bool WebKit::NonCompositedFrameRenderer::initialize()’:
/sdk/webkit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/NonCompositedFrameRenderer.cpp:68:20: error: ‘class WebKit::AcceleratedSurface’ has no member named ‘usesGL’
   68 |     if (m_surface-&gt;usesGL()) {
      |                    ^~~~~~
cc1plus: all warnings being treated as errors</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202228</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-04-20 05:52:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63121</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202268</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-04-20 09:12:37 -0700</bug_when>
    <thetext>There&apos;s a second hurdle after getting the first error ironed out, I&apos;ll update the patch to address this one as well:

---- 8&lt; ---- 8&lt; ----

/sdk/webkit/Source/WebKit/UIProcess/API/wpe/WebKitWebViewBackend.cpp:20:5: error: &quot;USE&quot; is not defined, evaluates to 0 [-Werror=undef]
   20 | #if USE(LIBWPE)
      |     ^~~
/sdk/webkit/Source/WebKit/UIProcess/API/wpe/WebKitWebViewBackend.cpp:20:8: error: missing binary operator before token &quot;(&quot;
   20 | #if USE(LIBWPE)
      |        ^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202587</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-20 23:50:46 -0700</bug_when>
    <thetext>Committed 311656@main (dc1afde2e8b9): &lt;https://commits.webkit.org/311656@main&gt;

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

    </bug>

</bugzilla>