mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7904] [MERGED] fix(e2e): play Linux WebKit audio to a fake sink so the Tracker bubble tap cannot freeze the page #8000
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8000
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7904
Author: @SpicyMarinara
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/webkit-tracker-click-stall📝 Commits (2)
bd34979fix(e2e): play WebKit audio to a fake sink so the first tap cannot freeze the pagea5ee522Merge branch 'staging' into fix/webkit-tracker-click-stall📊 Changes
2 files changed (+18 additions, -0 deletions)
View changed files
📝
playwright.config.ts(+12 -0)📝
scripts/regressions/open-issues.regression.ts(+6 -0)📄 Description
Linked issue
No issue. This fixes a release-matrix stall from run 39457323028 (mobile-webkit shard 18, job 118747547482), which is blocking the 2.5.1 release. @SpicyMarinara
Why this change
tracker-window.e2e.ts:95hung on mobile-webkit while tapping the Tracker bubble. No assertion after the tap ran, and the 60 s deadline'sfinallyDELETE then hid the original wait.game-audio.tsunlock()runs on it. It plays a silent<audio>and starts anAudioContext. WebKit on Linux plays through GStreamer, which opens the audio device on the page's main thread for both. When the runner's audio stack hangs, the page freezes at that tap. Chromium already gets--disable-audio-outputfor this class of stall; WebKit had nothing.tts-mobile-playback.e2e.ts), another GStreamer operation on the main thread. That spec got its own fix in2dfa25075. This change also keeps that spec's audio off a real device, but I have not re-proven that case.What changed
playwright.config.ts: rank GStreamer'sfakeaudiosinkfirst (GST_PLUGIN_FEATURE_RANK=fakeaudiosink:MAX) in the runner's environment. Every browser the runner starts inherits it, including a spec's own WebKit launch options (avatar-voice-sync.e2e.tsoverrides them with{}). WebKit then never opens an audio device, while playback keeps its real clock and events. Chromium and WebKit on macOS ignore the variable. The value is appended only once, because workers load the config again.scripts/regressions/open-issues.regression.ts: pin it beside the existing Chromium--disable-audio-outputassertion.No app code, spec, assertion or timeout changes.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results (please verify; boxes intentionally left unchecked):
pnpm check: passed on the rebased branch.AssertionError: WebKit e2e browsers play to GStreamer's fake audio sink) and passes with this change.nobleimage, run-server, real app and the exact tracker-window flow; the audio server accepts connections and never answers, i.e. a hung audio stack):page.evaluategot no answer within 30 s. The audio server got 7 connections.new Audio().play()andnew AudioContext()hung the tap 4/4 andevaluatehung too (control without audio: 0/2). After: 0/6 (control: 0/3).tracker-window.e2e.ts --repeat-each=20 --workers=2:packages/sharedunder the running Vite server; the page reloaded mid-test.Manual verification notes
playwright.yml, mobile-webkit 18 shards) shows no WebKit stall at a first tap.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Test-environment change only; no docs or release files touched.
UI evidence (if applicable)
Not applicable (no UI change).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.