<?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>207066</bug_id>
          
          <creation_ts>2020-01-31 13:13:22 -0800</creation_ts>
          <short_desc>[ macOS wk1 ] editing/execCommand/insert-nested-lists.html is flaky failing</short_desc>
          <delta_ts>2026-01-05 10:18:08 -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>HTML Editing</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Jacob Uphoff">jacob_uphoff</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rniwa</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1613544</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-01-31 13:13:22 -0800</bug_when>
    <thetext>editing/execCommand/insert-nested-lists.html

This flaky failure has been happening for all visible history on Catalina and Mojave

I was able to reproduce by running the test in iterations

History:

https://results.webkit.org/?suite=layout-tests&amp;test=editing%2FexecCommand%2Finsert-nested-lists.html

Diff:

https://build.webkit.org/results/Apple-Catalina-Debug-WK1-Tests/r255510%20(2186)/editing/execCommand/insert-nested-lists-diff.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613545</commentid>
    <comment_count>1</comment_count>
      <attachid>389398</attachid>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-01-31 13:16:55 -0800</bug_when>
    <thetext>Created attachment 389398
Update Test Expectations</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613551</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-31 13:21:35 -0800</bug_when>
    <thetext>&lt;rdar://problem/59072372&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613555</commentid>
    <comment_count>3</comment_count>
      <attachid>389398</attachid>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2020-01-31 13:25:15 -0800</bug_when>
    <thetext>Comment on attachment 389398
Update Test Expectations

Clearing flags on attachment: 389398

Committed r255520: &lt;https://trac.webkit.org/changeset/255520&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613771</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-01 18:26:06 -0800</bug_when>
    <thetext>Presumably this part is insufficient to deflake it?

    // By default, AppKit on macOS coalesces undo operations that occur within the same runloop. Wait until the next
    // runloop before inserting another unordered list to ensure that it gets its own entry in the undo stack.
    await new Promise((resolve) =&gt; {
        if (window.testRunner)
            testRunner.runUIScript(`(function() { uiController.uiScriptComplete(); })()`, resolve);
        else
            setTimeout(resolve, 500);
    });</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637055</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-04-02 14:09:54 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #4)
&gt; Presumably this part is insufficient to deflake it?
&gt; 
&gt;     // By default, AppKit on macOS coalesces undo operations that occur
&gt; within the same runloop. Wait until the next
&gt;     // runloop before inserting another unordered list to ensure that it
&gt; gets its own entry in the undo stack.
&gt;     await new Promise((resolve) =&gt; {
&gt;         if (window.testRunner)
&gt;             testRunner.runUIScript(`(function() {
&gt; uiController.uiScriptComplete(); })()`, resolve);
&gt;         else
&gt;             setTimeout(resolve, 500);
&gt;     });

Hm... going to the UI script in theory should be sufficient but I guess not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637085</commentid>
    <comment_count>6</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2020-04-02 14:56:59 -0700</bug_when>
    <thetext>(In reply to Ryosuke Niwa from comment #5)
&gt; (In reply to Alexey Proskuryakov from comment #4)
&gt; &gt; Presumably this part is insufficient to deflake it?
&gt; &gt; 
&gt; &gt;     // By default, AppKit on macOS coalesces undo operations that occur
&gt; &gt; within the same runloop. Wait until the next
&gt; &gt;     // runloop before inserting another unordered list to ensure that it
&gt; &gt; gets its own entry in the undo stack.
&gt; &gt;     await new Promise((resolve) =&gt; {
&gt; &gt;         if (window.testRunner)
&gt; &gt;             testRunner.runUIScript(`(function() {
&gt; &gt; uiController.uiScriptComplete(); })()`, resolve);
&gt; &gt;         else
&gt; &gt;             setTimeout(resolve, 500);
&gt; &gt;     });
&gt; 
&gt; Hm... going to the UI script in theory should be sufficient but I guess not.

I’m not sure if runUIScript is sufficient to ensure that the we proceed after the next runloop in WebKit1. Maybe we need to call uiController.doAsyncTask() instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169349</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2026-01-05 10:18:08 -0800</bug_when>
    <thetext>Closing old WebKitLegacy bugs as we cut-back WebKitLegacy testing. See https://bugs.webkit.org/show_bug.cgi?id=304436.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>389398</attachid>
            <date>2020-01-31 13:16:55 -0800</date>
            <delta_ts>2020-01-31 13:25:15 -0800</delta_ts>
            <desc>Update Test Expectations</desc>
            <filename>bug-207066-20200131131654.patch</filename>
            <type>text/plain</type>
            <size>1646</size>
            <attacher name="Jacob Uphoff">jacob_uphoff</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjU1NTE0CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggYjFlNTBhMWQ3ODZmMDJkYTQwMTlm
MWVmMjc3YTQ1NjljZGY1N2RiMi4uYmJhMWYxNDZmNjFjYzBlN2ZjNGExYzExZGFmNGQwM2Y2N2U5
MTExNiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDEyIEBACisyMDIwLTAxLTMxICBKYWNvYiBVcGhvZmYgIDxq
YWNvYl91cGhvZmZAYXBwbGUuY29tPgorCisgICAgICAgIFsgbWFjT1Mgd2sxIF0gZWRpdGluZy9l
eGVjQ29tbWFuZC9pbnNlcnQtbmVzdGVkLWxpc3RzLmh0bWwgaXMgZmxha3kgZmFpbGluZworICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjA3MDY2CisKKyAg
ICAgICAgVW5yZXZpZXdlZCB0ZXN0IGdhcmRlbmluZy4KKworICAgICAgICAqIHBsYXRmb3JtL21h
Yy13azEvVGVzdEV4cGVjdGF0aW9uczoKKwogMjAyMC0wMS0zMSAgSmFzb24gTGF3cmVuY2UgIDxs
YXdyZW5jZS5qQGFwcGxlLmNvbT4KIAogICAgICAgICBbIE1vamF2ZSB3azIgUmVsZWFzZSBdIGlt
cG9ydGVkL3czYy93ZWItcGxhdGZvcm0tdGVzdHMvaHRtbC93ZWJhcHBh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