<?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>267461</bug_id>
          
          <creation_ts>2024-01-12 11:16:03 -0800</creation_ts>
          <short_desc>REGRESSION(267516@main): [ macOS wk2 ] editing/input/caret-at-the-edge-of-contenteditable.html is constantly failing.</short_desc>
          <delta_ts>2024-01-16 12:17:58 -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>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=259373</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="Ben Schwartz">ben_schwartz</reporter>
          <assigned_to name="Ben Schwartz">ben_schwartz</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2004733</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2024-01-12 11:16:03 -0800</bug_when>
    <thetext>editing/input/caret-at-the-edge-of-contenteditable.html

This test is constantly failing on wk2 on macOS.

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=editing%2Finput%2Fcaret-at-the-edge-of-contenteditable.html&amp;platform=mac&amp;flavor=wk2

TEXT DIFF (Sonoma):

         RenderText {#text} at (0,0) size 761x36
           text run at (0,0) width 761: &quot;When the caret reaches the edge of the input box or content editable div, on the next input if must jump to the center of&quot;
           text run at (0,18) width 73: &quot;the control.&quot;
-layer at (8,44) size 82x20 clip at (9,45) size 80x18 scrollX 41 scrollWidth 337
+layer at (8,44) size 82x20 clip at (9,45) size 80x18 scrollX 48 scrollWidth 338
   RenderBlock {DIV} at (0,36) size 82x20 [border: (1px solid #000000)]
     RenderText {#text} at (1,1) size 336x18
       text run at (1,1) width 336: &quot;012345678901012345678901234567890123456789&quot;
DIFF URL: https://build.webkit.org/results/Apple-Sonoma-Release-AppleSilicon-WK2-Tests/272977@main%20(1626)/editing/input/caret-at-the-edge-of-contenteditable-pretty-diff.html

TEXT DIFF (Monterey/Ventura):

   RenderBlock {DIV} at (0,36) size 82x20 [border: (1px solid #000000)]
     RenderText {#text} at (1,1) size 336x18
       text run at (1,1) width 336: &quot;012345678901012345678901234567890123456789&quot;
+layer at (8,44) size 8x18
+  RenderBlock (positioned) {SPAN} at (8,44) size 8x18
+    RenderText {#text} at (0,0) size 8x18
+      text run at (0,0) width 8: &quot;0&quot;
 caret: position 12 of child 0 {#text} of child 5 {DIV} of body
DIFF URL: https://build.webkit.org/results/Apple-Ventura-Debug-AppleSilicon-WK2-Tests/272975@main%20(4743)/editing/input/caret-at-the-edge-of-contenteditable-pretty-diff.html

REPRODUCIBILITY:

I was able to reproduce this issue on macOS Sonoma (14.2, 23C71/arm64) ToT using the following command:

run-webkit-tests -v editing/input/caret-at-the-edge-of-contenteditable.html

REGRESSION:

This test began failing with the migration of Sonoma test expectations to OpenSource at 267516@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004734</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-12 11:16:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/120913774&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004749</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2024-01-12 12:15:35 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/22723</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005337</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-16 12:17:57 -0800</bug_when>
    <thetext>Committed 273087@main (292595cd441a): &lt;https://commits.webkit.org/273087@main&gt;

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

    </bug>

</bugzilla>