<?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>306047</bug_id>
          
          <creation_ts>2026-01-22 10:49:16 -0800</creation_ts>
          <short_desc>[MacOS release] accessibility/mac/replaced-element-text-selection.html is a flakey text failure</short_desc>
          <delta_ts>2026-01-22 11:23:45 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Diego De La Toba">d_delatoba</reporter>
          <assigned_to name="Nobody">webkit-unassigned</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>2174158</commentid>
    <comment_count>0</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-01-22 10:49:16 -0800</bug_when>
    <thetext>accessibility/mac/replaced-element-text-selection.html is a flakey text failure on macOS release. 


HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=accessibility%2Fmac%2Freplaced-element-text-selection.html


TEXT DIFF:
This test ensures we can create valid text marker ranges from positions adjacent to replaced elements.

FAIL: webarea.stringForTextMarkerRange(range) !== &apos;ï¿¼&apos;, was x
FAIL: webarea.attributedStringForTextMarkerRange(range).slice(-1) !== &apos;ï¿¼&apos;, was x
PASS: webarea.stringForTextMarkerRange(range) === &apos;x&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;x&apos;
PASS: webarea.stringForTextMarkerRange(range) === &apos;y&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;y&apos;
PASS: webarea.stringForTextMarkerRange(range) === &apos;z&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;z&apos;
PASS: webarea.stringForTextMarkerRange(range) === &apos;z&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;z&apos;
PASS: webarea.stringForTextMarkerRange(range) === &apos;y&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;y&apos;
PASS: webarea.stringForTextMarkerRange(range) === &apos;x&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;x&apos;
PASS: webarea.stringForTextMarkerRange(range) === &apos;ï¿¼&apos;
PASS: webarea.attributedStringForTextMarkerRange(range).slice(-1) === &apos;ï¿¼&apos;

PASS successfullyParsed is true

TEST COMPLETE
xyz


DIFF URL:
https://build.webkit.org/results/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/306011@main%20(1235)/accessibility/mac/replaced-element-text-selection-pretty-diff.html


STEPS TO REPRODUCE:
I was NOT able to reproduce on Tahoe ToT with the following:

run-webkit-test --release --no-retry --force --iterations 10000  -f accessibility/mac/replaced-element-text-selection.html 

run-webkit-test --release --no-retry --force --iterations 1000  -f --test-list=&lt;test list file&gt; accessibility/mac/replaced-element-text-selection.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174160</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-22 10:49:23 -0800</bug_when>
    <thetext>&lt;rdar://problem/168688364&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174167</commentid>
    <comment_count>2</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-01-22 11:12:25 -0800</bug_when>
    <thetext>I am going to set test expectations while this pends investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174168</commentid>
    <comment_count>3</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-01-22 11:12:41 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57058</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174172</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-22 11:23:45 -0800</bug_when>
    <thetext>Test gardening commit 306027@main (795fd434c095): &lt;https://commits.webkit.org/306027@main&gt;

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

    </bug>

</bugzilla>