<?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>258289</bug_id>
          
          <creation_ts>2023-06-19 18:29:30 -0700</creation_ts>
          <short_desc>fast/editing/document-leak-altered-text-field.html is flaky</short_desc>
          <delta_ts>2023-06-25 20:16:21 -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>DOM</component>
          <version>WebKit Nightly Build</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=256404</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=258356</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=258328</see_also>
          <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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1962483</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-06-19 18:29:30 -0700</bug_when>
    <thetext>It&apos;s flaky since 264022@main (bug#256404) added fast/editing/document-leak-altered-text-field.html
https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fediting%2Fdocument-leak-altered-text-field.html

This is the first test failure.

Buildbot: builder Apple-Monterey-Debug-AppleSilicon-WK2-Tests build 5711 (264037@main)
https://build.webkit.org/#/builders/376/builds/5711

--- /Volumes/Data/worker/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/build/layout-test-results/fast/editing/document-leak-altered-text-field-expected.txt
+++ /Volumes/Data/worker/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/build/layout-test-results/fast/editing/document-leak-altered-text-field-actual.txt
@@ -4,8 +4,9 @@
 
 
 PASS w.document.getElementById(&apos;textField&apos;).value is &quot;test&quot;
-PASS The Document didn&apos;t leak
+FAIL The document leaked
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962485</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-06-19 18:35:21 -0700</bug_when>
    <thetext>Not only random text failure, but also random assertion failures.

Buildbot: builder Apple-Monterey-Debug-WK2-Tests build 7765 (264038@main)
https://build.webkit.org/#/builders/369/builds/7765

2023-05-12 18:53:37.822 com.apple.WebKit.WebContent.Development[79695:31473968] XType: can&apos;t switch to GlobalFontRegistry.  XTFontStaticRegistry is not enabled.
ASSERTION FAILED: unifiedTextCheckerEnabled()
editing/Editor.cpp(2808) : void WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges(OptionSet&lt;WebCore::TextCheckingType&gt;, const std::optional&lt;SimpleRange&gt; &amp;, const std::optional&lt;SimpleRange&gt; &amp;, const std::optional&lt;SimpleRange&gt; &amp;)
1   0x3f9e27759 WTFCrash
2   0x3a35bb5cb WTFCrashWithInfo(int, char const*, char const*, int)
3   0x3a7602c42 WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges(WTF::OptionSet&lt;WebCore::TextCheckingType&gt;, std::__1::optional&lt;WebCore::SimpleRange&gt; const&amp;, std::__1::optional&lt;WebCore::SimpleRange&gt; const&amp;, std::__1::optional&lt;WebCore::SimpleRange&gt; const&amp;)
4   0x3a7590e1c WebCore::AlternativeTextController::timerFired()
5   0x3a75be3f9 decltype(*(static_cast&lt;WebCore::AlternativeTextController*&amp;&gt;(fp0)).*fp()) std::__1::__invoke&lt;void (WebCore::AlternativeTextController::*&amp;)(), WebCore::AlternativeTextController*&amp;, void&gt;(void (WebCore::AlternativeTextController::*&amp;)(), WebCore::AlternativeTextController*&amp;)
6   0x3a75be37d std::__1::__bind_return&lt;void (WebCore::AlternativeTextController::*)(), std::__1::tuple&lt;WebCore::AlternativeTextController*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::AlternativeTextController::*)(), std::__1::tuple&lt;WebCore::AlternativeTextController*&gt;, std::__1::tuple&lt;&gt; &gt;::value&gt;::type std::__1::__apply_functor&lt;void (WebCore::AlternativeTextController::*)(), std::__1::tuple&lt;WebCore::AlternativeTextController*&gt;, 0ul, std::__1::tuple&lt;&gt; &gt;(void (WebCore::AlternativeTextController::*&amp;)(), std::__1::tuple&lt;WebCore::AlternativeTextController*&gt;&amp;, std::__1::__tuple_indices&lt;0ul&gt;, std::__1::tuple&lt;&gt;&amp;&amp;)
7   0x3a75be330 std::__1::__bind_return&lt;void (WebCore::AlternativeTextController::*)(), std::__1::tuple&lt;WebCore::AlternativeTextController*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::AlternativeTextController::*)(), std::__1::tuple&lt;WebCore::AlternativeTextController*&gt;, std::__1::tuple&lt;&gt; &gt;::value&gt;::type std::__1::__bind&lt;void (WebCore::AlternativeTextController::*&amp;)(), WebCore::AlternativeTextController*&gt;::operator()&lt;&gt;()
8   0x3a75be2c9 WTF::Detail::CallableWrapper&lt;std::__1::__bind&lt;void (WebCore::AlternativeTextController::*&amp;)(), WebCore::AlternativeTextController*&gt;, void&gt;::call()
9   0x3a35dacf2 WTF::Function&lt;void ()&gt;::operator()() const
10  0x3a3764e79 WebCore::Timer::fired()
11  0x3a86610a6 WebCore::ThreadTimers::sharedTimerFiredInternal()
12  0x3a866ce81 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
13  0x3a866ce19 WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call()
14  0x3a35dacf2 WTF::Function&lt;void ()&gt;::operator()() const
15  0x3a85f3b61 WebCore::MainThreadSharedTimer::fired()
16  0x3a8718096 WebCore::timerFired(__CFRunLoopTimer*, void*)
17  0x7ff80df41899 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
18  0x7ff80df41388 __CFRunLoopDoTimer
19  0x7ff80df40ef8 __CFRunLoopDoTimers
20  0x7ff80df27646 __CFRunLoopRun
21  0x7ff80df267ac CFRunLoopRunSpecific
22  0x7ff80ed7ad9a -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
23  0x7ff80ee058d7 -[NSRunLoop(NSRunLoop) run]
24  0x7ff80dba6816 _xpc_objc_main
25  0x7ff80dba6239 xpc_main
26  0x3cfea6364 WebKit::XPCServiceMain(int, char const**)
27  0x3d204865b WKXPCServiceMain
28  0x10939df22 main
29  0x116e4c51e (null)
com.apple.WebKit.WebContent.Development terminated (pid 79695) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962606</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-06-20 11:45:52 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/15112</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962685</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-20 16:13:34 -0700</bug_when>
    <thetext>Committed 265339@main (4860f7c8dba8): &lt;https://commits.webkit.org/265339@main&gt;

Reviewed commits have been landed. Closing PR #15112 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962686</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-20 16:14:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/111068630&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963532</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-06-25 16:15:27 -0700</bug_when>
    <thetext>Looks like this fully resolved the issue, but TestExpectation hasn&apos;t been removed:

LayoutTests/platform/mac/TestExpectations:2732:[ Debug ] fast/editing/document-leak-altered-text-field.html [ Pass Crash ]

Chris, would you be willing to take care of this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963550</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-06-25 20:09:05 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #5)
&gt; Looks like this fully resolved the issue, but TestExpectation hasn&apos;t been
&gt; removed:
&gt; 
&gt; LayoutTests/platform/mac/TestExpectations:2732:[ Debug ]
&gt; fast/editing/document-leak-altered-text-field.html [ Pass Crash ]
&gt; 
&gt; Chris, would you be willing to take care of this?

Sure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963551</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-06-25 20:12:16 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/15284</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963552</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-25 20:16:18 -0700</bug_when>
    <thetext>Committed 265505@main (4244734774f7): &lt;https://commits.webkit.org/265505@main&gt;

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

    </bug>

</bugzilla>