fix(core): seeking a film with many videos no longer hangs Safari (#8278)

* ci(player): the Safari films check can run one film many times

Started by hand, the workflow takes a film list, a run count and a browser list, and each such
start runs beside the others instead of cancelling them. A fault that shows in one run of a
film out of many needs hundreds of runs of that film to be seen, and to be shown gone.
Pushes, pull requests and the nightly run are unchanged: every heavy film, twice, in Safari
and Chrome.

* fix(core): seeking a film with many videos no longer hangs Safari

A seek in a player frame holds the picture each shown video is showing. Since #7971 that
picture is drawn through a VideoFrame of the video, which spares Chromium's image decode
cache. WebKit has no such cache, and in Safari making a VideoFrame of a video that was just
paused can block the page's main thread without end: the first seek after playback of a film
with sixteen 1080p videos never came back, and the "Heavy films: Safari vs Chrome" check
failed on it with a driver timeout.

WebKit now draws the held picture from the video element, as it did before #7971. Chromium
keeps the VideoFrame route.
This commit is contained in:
Miguel Ángel
2026-11-21 02:15:21 +00:00
committed by GitHub
parent 183bc10807
commit 6515a90804
3 changed files with 53 additions and 3 deletions
+19 -2
View File
@@ -14,10 +14,22 @@ on:
- ".github/workflows/player-safari.yml"
schedule:
- cron: "23 7 * * *"
# One film many times: a fault that shows once in fifty runs needs hundreds of runs to prove gone.
workflow_dispatch:
inputs:
fixtures:
description: "Films to run, comma-separated (empty runs every heavy film)"
default: ""
runs:
description: "Runs of each film"
default: "2"
browsers:
description: "Browsers, comma-separated"
default: "safari,chrome"
concurrency:
group: player-safari-${{ github.ref }}
# Each dispatch is its own group: the runs of one proof go side by side instead of cancelling each other.
group: player-safari-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || 'auto' }}
cancel-in-progress: true
jobs:
@@ -66,9 +78,14 @@ jobs:
- name: Run heavy films in Safari and Chrome
working-directory: packages/player
env:
FIXTURES: ${{ inputs.fixtures }}
RUNS: ${{ inputs.runs || '2' }}
BROWSERS: ${{ inputs.browsers || 'safari,chrome' }}
run: |
sw_vers
CHROMEDRIVER="$CHROMEWEBDRIVER/chromedriver" bun run tests/perf/browsers/run.ts --browsers safari,chrome --runs 2
CHROMEDRIVER="$CHROMEWEBDRIVER/chromedriver" bun run tests/perf/browsers/run.ts \
--browsers "$BROWSERS" --runs "$RUNS" ${FIXTURES:+--fixtures "$FIXTURES"}
- name: Upload results
if: always()