<?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>304348</bug_id>
          
          <creation_ts>2025-12-17 12:02:17 -0800</creation_ts>
          <short_desc>clean up WebFoundTextRangeController</short_desc>
          <delta_ts>2026-01-19 21:53:21 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</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>ccarley2</reporter>
          <assigned_to name="Claudio Saavedra">csaavedra</assigned_to>
          <cc>dpino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2166685</commentid>
    <comment_count>0</comment_count>
    <who name="">ccarley2</who>
    <bug_when>2025-12-17 12:02:17 -0800</bug_when>
    <thetext>Some of the code in WebFoundTextRangeController is difficult to read and could use some modernization</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166686</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-12-17 12:02:24 -0800</bug_when>
    <thetext>&lt;rdar://problem/166726139&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166689</commentid>
    <comment_count>2</comment_count>
    <who name="">ccarley2</who>
    <bug_when>2025-12-17 12:06:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/55577</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167111</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-12-18 16:05:17 -0800</bug_when>
    <thetext>Committed 304713@main (8b622d23c65b): &lt;https://commits.webkit.org/304713@main&gt;

Reviewed commits have been landed. Closing PR #55577 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168002</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-12-23 14:23:07 -0800</bug_when>
    <thetext>After this patch, &apos;GTK-Linux-64-bit-Release-Debian-Stable-Build&apos; s is failing with the following error:

https://build.webkit.org/#/builders/46/builds/58814

```
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-30.cpp:8:
../../../Source/WebKit/WebProcess/WebPage/WebFoundTextRangeController.cpp: In member function ‘void WebKit::WebFoundTextRangeController::findTextRangesForStringMatches(const WTF::String&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, uint32_t, WTF::CompletionHandler&lt;void(WTF::HashMap&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::FrameIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits&lt;long unsigned int&gt;, long unsigned int&gt;, WTF::Vector&lt;WebKit::WebFoundTextRange&gt; &gt;&amp;&amp;)&gt;&amp;&amp;)’:
../../../Source/WebKit/WebProcess/WebPage/WebFoundTextRangeController.cpp:136:66: error: ‘zip’ is not a member of ‘std::views’
  136 |     for (const auto&amp; [foundTextRange, simpleRange] : std::views::zip(webFoundTextRanges, validSimpleRanges)) {
      |                                                                  ^~~
ninja: build stopped: subcommand failed.
```

The issue is that this bot uses GCC12 which uses a libstdc++ version which doesn&apos;t implement `std::views:zip`. This is the only use of this function in the entire codebase. A potential fix could be to implement std::view:zip in StdLibExtras.h. Another possibility is to rewrite this code so it doesn&apos;t use `std::views::zip`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168005</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-12-23 14:30:09 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/55840</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173058</commentid>
    <comment_count>6</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2026-01-19 09:14:41 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56839</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173204</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-19 21:53:19 -0800</bug_when>
    <thetext>Committed 305851@main (bea9084bbebd): &lt;https://commits.webkit.org/305851@main&gt;

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

    </bug>

</bugzilla>