<?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>298207</bug_id>
          
          <creation_ts>2025-09-01 17:12:20 -0700</creation_ts>
          <short_desc>REGRESSION(299308@main) [GTK] GTK3 build broken due to missing AddEventListenerOptionsInlines.h includes</short_desc>
          <delta_ts>2025-09-01 21:48:09 -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>WebKitGTK</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="Lauro Moura">lmoura</reporter>
          <assigned_to name="Lauro Moura">lmoura</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2140123</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-09-01 17:12:20 -0700</bug_when>
    <thetext>First build failure: https://build.webkit.org/#/builders/1519/builds/6140

Error:

FAILED: lib/libwebkit2gtk-4.1.so.0.20.0 
: &amp;&amp; /usr/bin/c++ -fPIC -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-subobject-linkage -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wl,--no-undefined -L/jhbuild/install/lib -fuse-ld=lld -Wl,--gc-sections -Wl,--disable-new-dtags -shared -Wl,-soname,libwebkit2gtk-4.1.so.0 -o lib/libwebkit2gtk-4.1.so.0.20.0 @CMakeFiles/WebKit.rsp  &amp;&amp; :
ld.lld: error: undefined symbol: WebCore::AddEventListenerOptions::AddEventListenerOptions(bool, std::optional&lt;bool&gt;, bool)
&gt;&gt;&gt; referenced by UnifiedSource-54928a2b-28.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-28.cpp.o:(webkit_dom_text_add_event_listener(_WebKitDOMEventTarget*, char const*, _GClosure*, int))
&gt;&gt;&gt; referenced by UnifiedSource-54928a2b-27.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-27.cpp.o:(webkit_dom_processing_instruction_add_event_listener(_WebKitDOMEventTarget*, char const*, _GClosure*, int))
&gt;&gt;&gt; referenced by UnifiedSource-54928a2b-27.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-27.cpp.o:(webkit_dom_node_add_event_listener(_WebKitDOMEventTarget*, char const*, _GClosure*, int))
&gt;&gt;&gt; referenced 12 more times
ld.lld: error: undefined symbol: WebCore::AddEventListenerOptions::~AddEventListenerOptions()
&gt;&gt;&gt; referenced by UnifiedSource-54928a2b-28.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-28.cpp.o:(webkit_dom_text_add_event_listener(_WebKitDOMEventTarget*, char const*, _GClosure*, int))
&gt;&gt;&gt; referenced by UnifiedSource-54928a2b-27.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-27.cpp.o:(webkit_dom_processing_instruction_add_event_listener(_WebKitDOMEventTarget*, char const*, _GClosure*, int))
&gt;&gt;&gt; referenced by UnifiedSource-54928a2b-27.cpp
&gt;&gt;&gt;               Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-27.cpp.o:(webkit_dom_node_add_event_listener(_WebKitDOMEventTarget*, char const*, _GClosure*, int))
&gt;&gt;&gt; referenced 12 more times
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=1800.028173</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140130</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-09-01 17:26:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/50161</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140137</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-01 18:48:35 -0700</bug_when>
    <thetext>Committed 299414@main (7b7c9dc5cb2f): &lt;https://commits.webkit.org/299414@main&gt;

Reviewed commits have been landed. Closing PR #50161 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140144</commentid>
    <comment_count>3</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-09-01 20:18:42 -0700</bug_when>
    <thetext>Well, it&apos;s needed in a bunch of different places. Reopening to apply a new patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140150</commentid>
    <comment_count>4</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-09-01 20:34:38 -0700</bug_when>
    <thetext>Other than the GTK InjectedBundle API files, InjectedBundle&apos;s `WKBundlePage.cpp` will also need it:

```
In file included from /app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/EventTarget.h:33,
                 from /app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/Node.h:27,                                                                                                                                                                                                                      
                 from /app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/WebCoreOpaqueRoot.h:29,
                 from /app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/TrackBase.h:31,
                 from /app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/AudioTrack.h:32,                                                                                                                                                                                                                
                 from /app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/CaptionUserPreferences.h:30,
                 from /app/webkit/Source/WebKit/Shared/API/APICaptionUserPreferencesTestingModeToken.h:30,
                 from /app/webkit/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:31,
                 from /app/webkit/WebKitBuild/GTK/Release/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-15.cpp:1:
/app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/AddEventListenerOptions.h:38:12: error: inline function ‘WebCore::AddEventListenerOptions::AddEventListenerOptions(bool, std::optional&lt;bool&gt;, bool)’ used but never defined [-Werror]                                                         
   38 |     inline AddEventListenerOptions(bool capture = false, std::optional&lt;bool&gt; passive = std::nullopt, bool once = false);
      |            ^~~~~~~~~~~~~~~~~~~~~~~
/app/webkit/WebKitBuild/GTK/Release/WebCore/PrivateHeaders/WebCore/AddEventListenerOptions.h:42:12: error: inline function ‘WebCore::AddEventListenerOptions::~AddEventListenerOptions()’ used but never defined [-Werror]
   42 |     inline ~AddEventListenerOptions();
      |            ^
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140151</commentid>
    <comment_count>5</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-09-01 20:39:25 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/50165</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140154</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-01 21:48:04 -0700</bug_when>
    <thetext>Committed 299419@main (5a11c36849e8): &lt;https://commits.webkit.org/299419@main&gt;

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

    </bug>

</bugzilla>