<?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>315740</bug_id>
          
          <creation_ts>2026-05-28 01:17:25 -0700</creation_ts>
          <short_desc>Build failure on CMake + macOS 26.4: &quot;incomplete type &apos;WebKit::TextExtractionAssertionScope&apos;&quot;</short_desc>
          <delta_ts>2026-05-28 02:17: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>Tools / Tests</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Williams">emw</reporter>
          <assigned_to name="Elliott Williams">emw</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2215244</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2026-05-28 01:17:25 -0700</bug_when>
    <thetext>Seems like we&apos;re missing an import that is needed when invoking swift to generate WebKit-Swift-CPP.h</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215245</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-28 01:17:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/178125965&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215246</commentid>
    <comment_count>2</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2026-05-28 01:18:54 -0700</bug_when>
    <thetext>Full error:

```
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:75:19: error: invalid application of &apos;sizeof&apos; to an incomplete type &apos;WebKit::TextExtractionAssertionScope&apos;
 73 | 
 74 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 void operator()(_Tp* __ptr) const _NOEXCEPT {
 75 |     static_assert(sizeof(_Tp) &gt;= 0, &quot;cannot delete an incomplete type&quot;);
    |                   `- error: invalid application of &apos;sizeof&apos; to an incomplete type &apos;WebKit::TextExtractionAssertionScope&apos;
 76 |     static_assert(!is_void&lt;_Tp&gt;::value, &quot;cannot delete an incomplete type&quot;);
 77 |     delete __ptr;
    :
257 | #endif
258 | 
259 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
    |                                                                       `- note: in instantiation of member function &apos;std::unique_ptr&lt;WebKit::TextExtractionAssertionScope&gt;::reset&apos; requested here
260 | 
261 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr&amp; operator=(nullptr_t) _NOEXCEPT {
    :
288 |     __ptr_        = __p;
289 |     if (__tmp)
290 |       __deleter_(__tmp);
    |       `- note: in instantiation of member function &apos;std::default_delete&lt;WebKit::TextExtractionAssertionScope&gt;::operator()&apos; requested here
291 |   }
292 | 

/tmp/build/WTF/Headers/wtf/UniqueRef.h:67:7: note: in instantiation of member function &apos;std::unique_ptr&lt;WebKit::TextExtractionAssertionScope&gt;::~unique_ptr&apos; requested here
 65 | 
 66 | template&lt;typename T&gt;
 67 | class UniqueRef {
    |       `- note: in instantiation of member function &apos;std::unique_ptr&lt;WebKit::TextExtractionAssertionScope&gt;::~unique_ptr&apos; requested here
 68 | public:
 69 |     template &lt;typename U&gt;

&lt;unknown&gt;:0: note: in implicit move constructor for &apos;WTF::UniqueRef&lt;WebKit::TextExtractionAssertionScope&gt;&apos; first required here
/Users/emw/src/OpenSource/Source/WebKit/UIProcess/WebPageProxy.h:543:7: note: forward declaration of &apos;WebKit::TextExtractionAssertionScope&apos;
 541 | class SuspendedPageProxy;
 542 | class SystemPreviewController;
 543 | class TextExtractionAssertionScope;
     |       `- note: forward declaration of &apos;WebKit::TextExtractionAssertionScope&apos;
 544 | class UserData;
 545 | class UserMediaPermissionRequestManagerProxy;
ninja: build stopped: subcommand failed.
```

Build commands: cmake -S /Users/emw/src/OpenSource -B /tmp/build --preset mac-dev-debug &amp;&amp; ninja -C /tmp/build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215256</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-28 02:17:47 -0700</bug_when>
    <thetext>Committed 314024@main (707ff4ffb301): &lt;https://commits.webkit.org/314024@main&gt;

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

    </bug>

</bugzilla>