Bug 266332 - Safari cache issue when using MSE
Summary: Safari cache issue when using MSE
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 15
Hardware: Unspecified macOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-12-13 02:27 PST by jeroen.veltmans
Modified: 2023-12-15 06:35 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jeroen.veltmans 2023-12-13 02:27:37 PST
Steps to reproduce:
1) Open Safari and go to a page that uses Media Source Extensions to play a video. I've made a minimal repro page here: https://replit.com/@Jeroen-Veltmans/Safari-cache-mse-issue
2) Play the video like normal
3) Press the browser's 'previous page' button
4) Press the browser's 'next page' button
5) Notice how the player stalls

What is the expected behavior?
The player should play the video like normal.

What is the actual behavior?
The player stalls indefinitely.
Checking the mediaSource, all sourceBuffers have been detached. The previous sourceBuffers still exist, but have an 'InvalidStateError: The object is in an invalid state' message for buffered.

Extra notes:
When opening the debugger and disabling cache, everything works like it should.
Comment 1 Radar WebKit Bug Importer 2023-12-13 20:29:30 PST
<rdar://problem/119645471>