<?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>289204</bug_id>
          
          <creation_ts>2025-03-05 16:29:10 -0800</creation_ts>
          <short_desc>[ macOS ] imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/focus-after-close.html is a flaky failure.</short_desc>
          <delta_ts>2025-03-21 13:02:57 -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>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Yasmin Karimi">y_karimi</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ntim</cc>
    
    <cc>rniwa</cc>
    
    <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>2100786</commentid>
    <comment_count>0</comment_count>
    <who name="Yasmin Karimi">y_karimi</who>
    <bug_when>2025-03-05 16:29:10 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/focus-after-close.html

This test is a flaky failure on macOS.

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fsemantics%2Finteractive-elements%2Fthe-dialog-element%2Ffocus-after-close.html

DIFF:

@@ -6,5 +6,5 @@
 PASS Focus should be moved to the previously focused element even if it has moved to shadow DOM root in between show/close
 PASS Focus should be moved to the body if the previously focused element is removed
 PASS Focus should be moved to the shadow DOM host if the previouly focused element is a shadow DOM node
-PASS Focus should not scroll if the previously focused element is outside the viewport
+FAIL Focus should not scroll if the previously focused element is outside the viewport assert_true: expected true got false

DIFF URL:

https://build.webkit.org/results/Apple-Sequoia-Debug-AppleSilicon-WK1-Tests/291647@main%20(1391)/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/focus-after-close-pretty-diff.html

REPRODUCIBILITY:

I was able to reproduce this failure on MacOS Sequoia 15.3.1 (24D70 / arm64) at ToT with the following command:

run-webkit-tests imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/focus-after-close.html --debug --iterations 500</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100787</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-03-05 16:29:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/146338224&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100793</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-05 16:49:41 -0800</bug_when>
    <thetext>Test gardening commit 291664@main (0219cf962a22): &lt;https://commits.webkit.org/291664@main&gt;

Reviewed commits have been landed. Closing PR #41958 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104294</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-19 00:49:07 -0700</bug_when>
    <thetext>Fixing this test in the upstream: https://github.com/web-platform-tests/wpt/pull/51442</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104425</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-19 12:15:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/42705</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104479</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-19 15:19:00 -0700</bug_when>
    <thetext>Committed 292381@main (951344536cf4): &lt;https://commits.webkit.org/292381@main&gt;

Reviewed commits have been landed. Closing PR #42705 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105093</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-21 12:45:06 -0700</bug_when>
    <thetext>*** Bug 238749 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105094</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-21 12:46:30 -0700</bug_when>
    <thetext>This test appears to be no longer flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105102</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-21 13:02:57 -0700</bug_when>
    <thetext>Removed the flaky test expectation in https://commits.webkit.org/292500@main.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>