<?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>240699</bug_id>
          
          <creation_ts>2022-05-19 19:37:51 -0700</creation_ts>
          <short_desc>ASSERT(status == U_ZERO_ERROR) under SearchBuffer::search() when typing in the url bar in the iOS simulator</short_desc>
          <delta_ts>2022-05-19 22:50:15 -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>Text</component>
          <version>Safari Technology Preview</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1870610</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-05-19 19:37:51 -0700</bug_when>
    <thetext>Had a google search page loaded. Typed “wikipedia.org” into the MobileSafari URL bar. WebKit hits an assertion:

Status is U_USING_DEFAULT_WARNING.

(lldb) bt
* thread #1, queue = &apos;com.apple.main-thread&apos;, stop reason = EXC_BAD_ACCESS (code=1, address=0xbbadbeef)
  * frame #0: 0x00000004e3eb003e JavaScriptCore`::WTFCrash() at Assertions.cpp:322:35
    frame #1: 0x0000000508fff35b WebCore`WTFCrashWithInfo((null)=2237, (null)=&quot;./editing/TextIterator.cpp&quot;, (null)=&quot;size_t WebCore::SearchBuffer::search(size_t &amp;)&quot;, (null)=2294) at Assertions.h:748:5
    frame #2: 0x000000050c77d35e WebCore`WebCore::SearchBuffer::search(this=0x00007ff7b2866a70, start=0x00007ff7b2866818) at TextIterator.cpp:2237:9
    frame #3: 0x000000050c77c3b1 WebCore`WebCore::forEachMatch(range=0x00007ff7b2866ce0, target={ length = 1, contents = &apos;w&apos; }, options={ size = 4 }, match=0x00007ff7b2866b98)&gt; const&amp;) at TextIterator.cpp:2502:44
    frame #4: 0x000000050c77c80a WebCore`WebCore::findPlainText(range=0x00007ff7b2866ce0, target={ length = 1, contents = &apos;w&apos; }, options={ size = 4 }) at TextIterator.cpp:2570:5
    frame #5: 0x000000050c713bec WebCore`WebCore::Editor::countMatchesForText(this=0x00007faad9414390, target={ length = 1, contents = &apos;w&apos; }, range= Has Value=false , options={ size = 4 }, limit=1001, markMatches=false, matches={ size = 0, capacity = 0 }) at Editor.cpp:3629:28
    frame #6: 0x000000050d202a86 WebCore`WebCore::Page::findMatchesForText(this=0x00007faad9863600, target={ length = 1, contents = &apos;w&apos; }, options={ size = 4 }, maxMatchCount=1001, shouldHighlightMatches=DoNotHighlightMatches, shouldMarkMatches=DoNotMarkMatches) at Page.cpp:897:39
    frame #7: 0x000000050d202b65 WebCore`WebCore::Page::countFindMatches(this=0x00007faad9863600, target={ length = 1, contents = &apos;w&apos; }, options={ size = 4 }, maxMatchCount=1001) at Page.cpp:911:12
    frame #8: 0x00000004c8bab12a WebKit`WebKit::FindController::countStringMatches(this=0x00007faad917cf70, string={ length = 1, contents = &apos;w&apos; }, options={ size = 4 }, maxMatchCount=1000) at FindController.cpp:80:45
    frame #9: 0x00000004c8ddd20e WebKit`WebKit::WebPage::countStringMatches(this=0x00007faad9815408, string={ length = 1, contents = &apos;w&apos; }, options={ size = 4 }, maxMatchCount=1000) at WebPage.cpp:4907:22
    frame #10: 0x00000004c8f3c70e WebKit`void IPC::callMemberFunctionImpl&lt;WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int), std::__1::tuple&lt;WTF::String, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int&gt;, 0ul, 1ul, 2ul&gt;(object=0x00007faad9815408, function=d0 d1 dd c8 04 00 00 00 00 00 00 00 00 00 00 00, args=size=3, (null)=std::__1::index_sequence&lt;0UL, 1UL, 2UL&gt; @ 0x00007ff7b2866f48)(WTF::String const&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int), std::__1::tuple&lt;WTF::String, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul, 2ul&gt;) at HandleMessage.h:125:5
    frame #11: 0x00000004c8f3c62d WebKit`void IPC::callMemberFunction&lt;WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int), std::__1::tuple&lt;WTF::String, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul, 2ul&gt; &gt;(args=size=3, object=0x00007faad9815408, function=d0 d1 dd c8 04 00 00 00 00 00 00 00 00 00 00 00)(WTF::String const&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int)) at HandleMessage.h:131:5
    frame #12: 0x00000004c8e5ddca WebKit`void IPC::handleMessage&lt;Messages::WebPage::CountStringMatches, WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int)&gt;(connection=0x00007faad8f0c210, decoder=0x00007faad8f9a460, object=0x00007faad9815408, function=d0 d1 dd c8 04 00 00 00 00 00 00 00 00 00 00 00)(WTF::String const&amp;, WTF::OptionSet&lt;WebKit::FindOptions&gt;, unsigned int)) at HandleMessage.h:253:5
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870611</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-05-19 19:38:02 -0700</bug_when>
    <thetext>&lt;rdar://92182174&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870613</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-05-19 19:39:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/814</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870633</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-19 22:50:12 -0700</bug_when>
    <thetext>Committed r294531 (250786@main): &lt;https://commits.webkit.org/250786@main&gt;

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

    </bug>

</bugzilla>