Skip to content

e2e: the fullscreen bar case waits for the player's video (race, not a player bug) - #425

Merged
Nawid3333 merged 1 commit into
mainfrom
fix/fullscreen-bar-race
Oct 10, 2026
Merged

Nawid3333 merged 1 commit into
mainfrom
fix/fullscreen-bar-race

Conversation

@Nawid3333

Copy link
Copy Markdown
Owner

The content-overlays case "hides the player's bar after fullscreen was left and entered again with its button" failed on main (Windows, Firefox 157) and on #422 (Firefox 158 beta), both times on retry too. The report it now prints showed why: bigPlay: true, playing: false.

A race in the test, not a player bug. The case marks the player as playing as soon as its interface exists. The source arrives later (a message from the background), and setting it resets the player: big play button back, not playing. When that reset came after the case's playing state, the bar rightly stayed up. Logged locally: once the case acted while the player was still being built (source set, player not yet); and the unchanged case failed once in six local runs on Firefox 157 with exactly CI's report. In real use playback starts after that setup, so the bar hides as it should.

The case now waits until the player's video has loaded (source set, readyState >= 1) before it plays at being played.

Checks: the case 8 of 8 on Firefox 157 (no retries); the whole spec 8 passing on Firefox 158.0b5 (unpacked locally, not installed).

🤖 Generated with Claude Code

…lays at being played

The source's setup resets the player (big play button back, not playing). On CI's slower
runners, and once in six local runs, that reset came after the case set its playing state,
and the bar rightly stayed up (its report: bigPlay true, playing false).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nawid3333
Nawid3333 merged commit b35c184 into main Oct 10, 2026
25 checks passed
@Nawid3333
Nawid3333 deleted the fix/fullscreen-bar-race branch October 10, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant