<?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>197065</bug_id>
          
          <creation_ts>2019-04-18 11:15:52 -0700</creation_ts>
          <short_desc>[Mac WK2] REGRESSION (r244182) editing/execCommand/change-list-type.html is a flaky failure</short_desc>
          <delta_ts>2019-04-22 19:39: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>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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=177484</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=196985</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="Shawn Roberts">sroberts</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>lforschler</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</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>1528516</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-04-18 11:15:52 -0700</bug_when>
    <thetext>The following layout test is flaky on Mac WK2 Release

editing/execCommand/change-list-type.html

Probable cause:

Test started to become flaky on the dashboard around r244328.

Found through local testing that changes in https://trac.webkit.org/changeset/244182/webkit caused this test to become flaky. Testing with prior revisions pass 100%

Reproduced with:

run-webkit-tests editing/execCommand/change-list-type.html --iterations 100 -f

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=editing%2FexecCommand%2Fchange-list-type.html

Diff:

--- /Volumes/Data/slave/mojave-release-tests-wk2/build/layout-test-results/editing/execCommand/change-list-type-expected.txt
+++ /Volumes/Data/slave/mojave-release-tests-wk2/build/layout-test-results/editing/execCommand/change-list-type-actual.txt
@@ -354,7 +354,64 @@
 |     &quot;one&quot;
 |   &quot;
             &quot;
-|   &lt;ol&gt;
+|   &lt;ul&gt;
+|     class=&quot;list&quot;
+|     style=&quot;color: red&quot;
+|     &quot;
+                &quot;
+|     &lt;li&gt;
+|       id=&quot;two&quot;
+|       &quot;two&quot;
+|     &quot;
+                &quot;
+|     &lt;li&gt;
+|       id=&quot;three&quot;
+|       &quot;three&lt;#selection-caret&gt;&quot;
+|     &quot;
+            &quot;
+|   &quot;
+            &quot;
+|   &lt;li&gt;
+|     id=&quot;four&quot;
+|     &quot;four&quot;
+|   &quot;
+            &quot;
+|   &lt;pre&gt;
+|     &quot;                &quot;
+|     &lt;ol&gt;
+|       class=&quot;list&quot;
+|       &quot;
+                    &quot;
+|       &lt;li&gt;
+|         id=&quot;five&quot;
+|         &quot;five&quot;
+|       &quot;
+                    &quot;
+|       &lt;li&gt;
+|         id=&quot;six&quot;
+|         &quot;six&quot;
+|       &quot;
+                &quot;
+|     &quot;
+            &quot;
+|   &quot;
+        &quot;
+| &quot;
+    &quot;
+
+After making the outer list unordered:
+| &quot;
+        &quot;
+| &lt;ul&gt;
+|   class=&quot;list&quot;
+|   &quot;
+            &quot;
+|   &lt;li&gt;
+|     id=&quot;one&quot;
+|     &quot;one&quot;
+|   &quot;
+            &quot;
+|   &lt;ul&gt;
 |     class=&quot;list&quot;
 |     style=&quot;color: red&quot;
 |     &quot;
@@ -384,25 +441,25 @@
                     &quot;
 |       &lt;li&gt;
 |         id=&quot;five&quot;
-|         &quot;&lt;#selection-anchor&gt;five&quot;
-|       &quot;
-                    &quot;
-|       &lt;li&gt;
-|         id=&quot;six&quot;
-|         &quot;six&lt;#selection-focus&gt;&quot;
-|       &quot;
-                &quot;
-|     &quot;
-            &quot;
-|   &quot;
-        &quot;
-| &quot;
-    &quot;
-
-After making the outer list unordered:
-| &quot;
-        &quot;
-| &lt;ul&gt;
+|         &quot;five&quot;
+|       &quot;
+                    &quot;
+|       &lt;li&gt;
+|         id=&quot;six&quot;
+|         &quot;six&quot;
+|       &quot;
+                &quot;
+|     &quot;
+            &lt;#selection-caret&gt;&quot;
+|   &quot;
+        &quot;
+| &quot;
+    &quot;
+
+After making the outer list ordered again:
+| &quot;
+        &quot;
+| &lt;ol&gt;
 |   class=&quot;list&quot;
 |   &quot;
             &quot;
@@ -411,64 +468,7 @@
 |     &quot;one&quot;
 |   &quot;
             &quot;
-|   &lt;ol&gt;
-|     class=&quot;list&quot;
-|     style=&quot;color: red&quot;
-|     &quot;
-                &quot;
-|     &lt;li&gt;
-|       id=&quot;two&quot;
-|       &quot;two&quot;
-|     &quot;
-                &quot;
-|     &lt;li&gt;
-|       id=&quot;three&quot;
-|       &quot;three&quot;
-|     &quot;
-            &quot;
-|   &quot;
-            &quot;
-|   &lt;li&gt;
-|     id=&quot;four&quot;
-|     &quot;four&quot;
-|   &quot;
-            &quot;
-|   &lt;pre&gt;
-|     &quot;                &quot;
-|     &lt;ol&gt;
-|       class=&quot;list&quot;
-|       &quot;
-                    &quot;
-|       &lt;li&gt;
-|         id=&quot;five&quot;
-|         &quot;five&quot;
-|       &quot;
-                    &quot;
-|       &lt;li&gt;
-|         id=&quot;six&quot;
-|         &quot;six&quot;
-|       &quot;
-                &quot;
-|     &quot;
-            &lt;#selection-caret&gt;&quot;
-|   &quot;
-        &quot;
-| &quot;
-    &quot;
-
-After making the outer list ordered again:
-| &quot;
-        &quot;
-| &lt;ol&gt;
-|   class=&quot;list&quot;
-|   &quot;
-            &quot;
-|   &lt;li&gt;
-|     id=&quot;one&quot;
-|     &quot;one&quot;
-|   &quot;
-            &quot;
-|   &lt;ol&gt;
+|   &lt;ul&gt;
 |     class=&quot;list&quot;
 |     style=&quot;color: red&quot;
 |     &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528519</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-18 11:18:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/50021964&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528822</commentid>
    <comment_count>2</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2019-04-19 12:36:35 -0700</bug_when>
    <thetext>This test just needs the same tweak as r244461.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528826</commentid>
    <comment_count>3</comment_count>
      <attachid>367815</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-04-19 12:51:42 -0700</bug_when>
    <thetext>Created attachment 367815
Fixes the test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528828</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-04-19 12:56:00 -0700</bug_when>
    <thetext>Committed r244462: &lt;https://trac.webkit.org/changeset/244462&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528836</commentid>
    <comment_count>5</comment_count>
      <attachid>367815</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-19 13:18:16 -0700</bug_when>
    <thetext>Comment on attachment 367815
Fixes the test

View in context: https://bugs.webkit.org/attachment.cgi?id=367815&amp;action=review

&gt; LayoutTests/editing/execCommand/change-list-type.html:74
&gt; +                testRunner.runUIScript(`(function() { uiController.uiScriptComplete(); })()`, resolve);

Wouldn&apos;t doAfterPresentationUpdate() have been better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1528839</commentid>
    <comment_count>6</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2019-04-19 13:26:31 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #5)
&gt; Comment on attachment 367815 [details]
&gt; Fixes the test
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=367815&amp;action=review
&gt; 
&gt; &gt; LayoutTests/editing/execCommand/change-list-type.html:74
&gt; &gt; +                testRunner.runUIScript(`(function() { uiController.uiScriptComplete(); })()`, resolve);
&gt; 
&gt; Wouldn&apos;t doAfterPresentationUpdate() have been better?

I wouldn&apos;t think this needs to wait for the next layer tree flush; it simply needs to ensure that the current runloop in the UI process has finished.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529507</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-04-22 19:39:21 -0700</bug_when>
    <thetext>Looks like the flakiness is gone!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>367815</attachid>
            <date>2019-04-19 12:51:42 -0700</date>
            <delta_ts>2019-04-19 12:52:04 -0700</delta_ts>
            <desc>Fixes the test</desc>
            <filename>bug-197065-20190419125141.patch</filename>
            <type>text/plain</type>
            <size>1772</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDI0NDQ2MSkKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQC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aHRtbAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9lZGl0aW5n
L2V4ZWNDb21tYW5kL2NoYW5nZS1saXN0LXR5cGUuaHRtbAkocmV2aXNpb24gMjQ0NDYwKQorKysg
TGF5b3V0VGVzdHMvZWRpdGluZy9leGVjQ29tbWFuZC9jaGFuZ2UtbGlzdC10eXBlLmh0bWwJKHdv
cmtpbmcgY29weSkKQEAgLTY5LDYgKzY5LDEzIEBACiAgICAgICAgIGludGVybmFscy5jaGFuZ2VT
ZWxlY3Rpb25MaXN0VHlwZSgpOwogICAgICAgICBNYXJrdXAuZHVtcCgidG9wIiwgIkFmdGVyIGNo
YW5naW5nIHRoZSBmaXJzdCBzdWJsaXN0IGJhY2sgdG8gb3JkZXJlZCIpOwogCisgICAgICAgIGF3
YWl0IG5ldyBQcm9taXNlKChyZXNvbHZlKSA9PiB7CisgICAgICAgICAgICBpZiAod2luZG93LnRl
c3RSdW5uZXIpCisgICAgICAgICAgICAgICAgdGVzdFJ1bm5lci5ydW5VSVNjcmlwdChgKGZ1bmN0
aW9uKCkgeyB1aUNvbnRyb2xsZXIudWlTY3JpcHRDb21wbGV0ZSgpOyB9KSgpYCwgcmVzb2x2ZSk7
CisgICAgICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgc2V0VGltZW91dChyZXNvbHZlLCA1
MDApOworICAgICAgICB9KTsKKwogICAgICAgICBhd2FpdCBuZXcgUHJvbWlzZShyZXF1ZXN0QW5p
bWF0aW9uRnJhbWUpOwogICAgICAgICBnZXRTZWxlY3Rpb24oKS5zZXRCYXNlQW5kRXh0ZW50KGZp
dmUsIDAsIHNpeCwgMSk7CiAgICAgICAgIGludGVybmFscy5jaGFuZ2VTZWxlY3Rpb25MaXN0VHlw
ZSgpOwo=
</data>
<flag name="review"
          id="384159"
          type_id="1"
          status="+"
          setter="wenson_hsieh"
    />
          </attachment>
      

    </bug>

</bugzilla>