<?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>262460</bug_id>
          
          <creation_ts>2023-10-01 13:43:15 -0700</creation_ts>
          <short_desc>[Win] editing/selection/caret-rtl-right.html is randomly failing</short_desc>
          <delta_ts>2023-10-11 13:33:29 -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>HTML Editing</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=50731</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="Fujii Hironori">fujii</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1981623</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-01 13:43:15 -0700</bug_when>
    <thetext>editing/selection/caret-rtl-right.html is randomly failing on WinCairo tester buildbots.

https://results.webkit.org/?suite=layout-tests&amp;test=editing%2Fselection%2Fcaret-rtl-right.html

--- C:\BW\WinCairo-64-bit-Release-Tests\build\layout-test-results\editing/selection/caret-rtl-right-expected.txt
+++ C:\BW\WinCairo-64-bit-Release-Tests\build\layout-test-results\editing/selection/caret-rtl-right-actual.txt
@@ -11,7 +11,8 @@
         RenderText {#text} at (133,11) size 58x22
           text run at (133,11) width 58 RTL: &quot;\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}&quot;
       RenderBlock (anonymous) at (0,101) size 784x20
-        RenderText {#text} at (0,0) size 37x19
-          text run at (0,0) width 37: &quot;PASS&quot;
-        RenderBR {BR} at (37,0) size 0x19
-caret: position 0 of child 0 {#text} of child 3 {DIV} of body
+        RenderText {#text} at (0,0) size 185x19
+          text run at (0,0) width 185: &quot;FAIL: selection not collapsed&quot;
+        RenderBR {BR} at (185,0) size 0x19
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 3 {DIV} of body

However, this is not reprodusible on my PC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981993</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-02 22:54:47 -0700</bug_when>
    <thetext>editing/selection/caret-ltr-right.html is also randomly failing.
https://build.webkit.org/results/WinCairo-64-bit-Release-Tests/268759@main%20(2306)/results.html

--- C:\BW\WinCairo-64-bit-Release-Tests\build\layout-test-results\editing/selection/caret-ltr-right-expected.txt
+++ C:\BW\WinCairo-64-bit-Release-Tests\build\layout-test-results\editing/selection/caret-ltr-right-actual.txt
@@ -11,7 +11,8 @@
         RenderText {#text} at (11,11) size 72x22
           text run at (11,11) width 72: &quot;WebKit2&quot;
       RenderBlock (anonymous) at (0,101) size 784x20
-        RenderText {#text} at (0,0) size 37x19
-          text run at (0,0) width 37: &quot;PASS&quot;
-        RenderBR {BR} at (37,0) size 0x19
-caret: position 7 of child 0 {#text} of child 3 {DIV} of body
+        RenderText {#text} at (0,0) size 185x19
+          text run at (0,0) width 185: &quot;FAIL: selection not collapsed&quot;
+        RenderBR {BR} at (185,0) size 0x19
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 7 of child 0 {#text} of child 3 {DIV} of body</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981994</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-02 22:59:59 -0700</bug_when>
    <thetext>Looking at the diffs,
in caret-rtl-right.html, the first word was selected.
in caret-ltr-right.html, the word &quot;WebKit2&quot; was selected.
It seems that a double click was happened to select the rightmost word.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982005</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-02 23:34:17 -0700</bug_when>
    <thetext>editing/selection/5057506.html is also failing only on the tester buildbot, and it seems to be a fake double-click to select a word.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982294</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-03 17:26:55 -0700</bug_when>
    <thetext>In sssel5057506.html, the word &quot;foo&quot; is selected.

https://build.webkit.org/results/WinCairo-64-bit-Release-Tests/268765@main%20(2308)/editing/selection/5057506-diff.txt

--- C:\BW\WinCairo-64-bit-Release-Tests\build\layout-test-results\editing/selection/5057506-expected.txt
+++ C:\BW\WinCairo-64-bit-Release-Tests\build\layout-test-results\editing/selection/5057506-actual.txt
@@ -26,5 +26,5 @@
         RenderBlock {DIV} at (0,30) size 784x20
           RenderText {#text} at (0,0) size 20x19
             text run at (0,0) width 20: &quot;bar&quot;
-selection start: position 3 of child 0 {#text} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
 selection end:   position 0 of child 3 {DIV} of child 2 {DIV} of body</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983594</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-08 13:44:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/116651981&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984234</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-11 00:36:40 -0700</bug_when>
    <thetext>I bought a new PC. Now, it&apos;s easy to reproduce this failire on my new PC.
&gt; python .\Tools\Scripts\run-webkit-tests --debug --iterations=3 -v --no-retry-failures editing/selection/caret-rtl-right.html
It seems that a click event in the next page is considerd as a double click event.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984235</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-11 00:37:59 -0700</bug_when>
    <thetext>The following tests seem to have the same problem.

editing/deleting/smart-delete-001.html
editing/deleting/smart-delete-003.html
editing/deleting/smart-delete-004.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984240</commentid>
    <comment_count>8</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-11 01:07:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/18933</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984383</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-11 13:33:27 -0700</bug_when>
    <thetext>Committed 269217@main (d68b9530bdc4): &lt;https://commits.webkit.org/269217@main&gt;

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

    </bug>

</bugzilla>