<?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>308586</bug_id>
          
          <creation_ts>2026-02-24 14:35:14 -0800</creation_ts>
          <short_desc>[macOS] imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-pseudo-class.html is a flaky text failure</short_desc>
          <delta_ts>2026-11-01 07:24:47 -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>REOPENED</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>
          
          <blocked>276855</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego De La Toba">d_delatoba</reporter>
          <assigned_to name="Mike Wyrzykowski">mwyrzykowski</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>fred.wang</cc>
    
    <cc>ntim</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>2184567</commentid>
    <comment_count>0</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-24 14:35:14 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-pseudo-class.html is a flaky text failure on macOS


HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Ffullscreen%2Frendering%2Ffullscreen-pseudo-class.html


DIFF:
--- /Volumes/Data/Builds/Mac/Production/TestBuild308142@main/layout-test-results/imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-pseudo-class-expected.txt
+++ /Volumes/Data/Builds/Mac/Production/TestBuild308142@main/layout-test-results/imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-pseudo-class-actual.txt
@@ -1,3 +1,5 @@
 
-PASS :fullscreen pseudo-class
+Harness Error (TIMEOUT), message = null
 
+TIMEOUT :fullscreen pseudo-class Test timed out
+


DIFF URL:
https://build.webkit.org/results/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/308141%40main%20(1951)/imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-pseudo-class-pretty-diff.html


REPRODUCTION:
I was able to reproduce this failure on macOS Tahoe 26.2 arm64 release with the following:

run-webkit-tests --no-retry --force --expect-pass --iterations 50 imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-pseudo-class.html

I am going to mark expectations as pass fail while this pends investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184568</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-24 14:35:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/171112681&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184573</commentid>
    <comment_count>2</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-24 14:46:48 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/59367</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184574</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-24 14:49:42 -0800</bug_when>
    <thetext>Test gardening commit 308151@main (d8ad0835333d): &lt;https://commits.webkit.org/308151@main&gt;

Reviewed commits have been landed. Closing PR #59367 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184586</commentid>
    <comment_count>4</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-24 15:13:22 -0800</bug_when>
    <thetext>It appears the timeout message in the text diff is caused by fullscreen-pseudo-class.html:20-21 where we have the following sequential awaits:

await trusted_request(outer);
await fullScreenChange(); 

await trusted_request(outer) requests the full screen change (trusted-click.js:30 requestFullscreen()) then await fullScreenChange() registers the fullscreen change listener(trusted-click.js:41). I think what is happening here is requestFullscreen() completes before addEventListener ever runs causing the listener to wait forever.

The fix would be to use Promise.all() to register the listener before the request is made:

await Promise.all([fullScreenChange(), trusted_request(outer)]);

I&apos;ll put this fix up as a PR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184587</commentid>
    <comment_count>5</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-24 15:17:34 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/59368</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185578</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-27 10:34:00 -0800</bug_when>
    <thetext>Committed 308351@main (9dbb511485aa): &lt;https://commits.webkit.org/308351@main&gt;

Reviewed commits have been landed. Closing PR #59368 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185625</commentid>
    <comment_count>7</comment_count>
    <who name="Mike Wyrzykowski">mwyrzykowski</who>
    <bug_when>2026-02-27 12:15:16 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/59602</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2266050</commentid>
    <comment_count>8</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-10-19 08:30:54 -0700</bug_when>
    <thetext>Still seems marked as flaky failure: https://searchfox.org/wubkat/rev/4419a857fd628dde9bc8e2cbc8625be40f46ca70/LayoutTests/platform/mac-wk2/TestExpectations#2273

I see some recent failure on https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Ffullscreen%2Frendering%2Ffullscreen-pseudo-class.html so this may still be valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2272658</commentid>
    <comment_count>9</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2026-11-01 07:24:47 -0800</bug_when>
    <thetext>I wonder if this became flaky again because we overwrote https://github.com/web-platform-tests/wpt/pull/58261 with https://github.com/WebKit/WebKit/commit/e14f9e6ad8ace60d9039f9ebd4264e350e712bcb ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>