<?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>218220</bug_id>
          
          <creation_ts>2020-10-26 20:30:03 -0700</creation_ts>
          <short_desc>[GTK] Layout test editing/execCommand/switch-list-type-with-orphaned-li.html fails when WebKit is built with GCC</short_desc>
          <delta_ts>2026-04-10 21:49:37 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=101539</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aboya</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>dpino</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701738</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-10-26 20:30:03 -0700</bug_when>
    <thetext>Layout test editing/execCommand/switch-list-type-with-orphaned-li.html fails on GTK when WebKit is built with GCC (GCC 10.2.0 from flatpak env)

However the test passes fine when WebKit is built with Clang (Clang 10.0.1 from flatpak env).

The text diff for the failure (GCC) is the one below:

Regressions: Unexpected text-only failures (1)
  editing/execCommand/switch-list-type-with-orphaned-li.html [ Failure ]

------------------------------------------------------------------------------
--- /home/igalia/clopez/webkit/webkit-flatpak/layout-test-results/editing/execCommand/switch-list-type-with-orphaned-li-expected.txt
+++ /home/igalia/clopez/webkit/webkit-flatpak/layout-test-results/editing/execCommand/switch-list-type-with-orphaned-li-actual.txt
@@ -10,6 +10,13 @@
     &quot;
 |   &lt;li&gt;
 |     &quot;because of&quot;
+| &quot;
+&quot;
+| &quot;
+&quot;
+| &quot;
+&quot;
+| &lt;ol&gt;
 |   &quot;
     &quot;
 |   &lt;li&gt;
@@ -18,9 +25,3 @@
 &quot;
 | &quot;
 &quot;
-| &quot;
-&quot;
-| &quot;
-&quot;
-| &quot;
-&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701741</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-10-26 20:33:41 -0700</bug_when>
    <thetext>This is likely also an issue for WPE. Didn&apos;t tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701752</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-10-26 21:40:02 -0700</bug_when>
    <thetext>Updated expectations in r269021</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768074</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-06-09 00:16:54 -0700</bug_when>
    <thetext>The only test filed under this bug was:

  - editing/execCommand/switch-list-type-with-orphaned-li.html

GTK post-commit test bot reports the test has been failing consistently for the last 4000 revisions.

Diff:

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/editing/execCommand/switch-list-type-with-orphaned-li-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/editing/execCommand/switch-list-type-with-orphaned-li-actual.txt
@@ -8,11 +8,12 @@
 |   &quot;\n    &quot;
 |   &lt;li&gt;
 |     &quot;because of&quot;
+| &quot;\n&quot;
+| &quot;\n&quot;
+| &quot;\n&quot;
+| &lt;ol&gt;
 |   &quot;\n    &quot;
 |   &lt;li&gt;
 |     &quot;you&lt;#selection-focus&gt;&quot;
 |   &quot;\n&quot;
 | &quot;\n&quot;
-| &quot;\n&quot;
-| &quot;\n&quot;
-| &quot;\n&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768091</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-06-09 00:39:55 -0700</bug_when>
    <thetext>Sorry for the noise, this test should remain flakey as it passes with Clang but fails with GCC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2198012</commentid>
    <comment_count>5</comment_count>
    <who name="Alicia Boya García">aboya</who>
    <bug_when>2026-04-08 09:59:07 -0700</bug_when>
    <thetext>Oddly enough, this test consistently passes in WPE arm64 Release: https://build.webkit.org/results/WPE-Linux-ARM64-bit-Release-Tests/310777@main%20(1015)/results.html

The bot wpe-arm64-release completed 989 runs on the interval [308164@main-310780@main]
Frequency of results for test: editing/execCommand/switch-list-type-with-orphaned-li.html
  989 times [100%]       -&gt;  PASS

Of those 989 runs it didn&apos;t match the expectation 989 times [100%]
Details of the type and frequency of unmatched expectations:
  989 times [100%]       -&gt;  PASS (Expected: FAIL)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>