Bug 230443

Summary: [MSE] SourceBufferWebMParser should ignore segment length
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Jean-Yves Avenard [:jya] 2021-09-18 07:58:30 PDT
STR:

- Load https://jyavenard.github.io/htmltests/tests/mse_webm/big.html
- this pages loads 5MB of webm at a time, until an exception occurs due to the source buffer throwing a QuotaExceededError

Results:
10801: SourceBuffer buffered ranges grew from TimeRanges: [0.007, 545.109) to TimeRanges: [0.007, 550.11)
10801: Loading buffer: [0, 888286)
10999: got error event
10999: ok(false) should not fire 'error' event
10999: SimpleTest.finish

Expected:
QuotaExceededError should be caught and it should display the maximum size of a source buffer.

When this happens, the video element throws a fatal error.

SourceBuffer QuotaExceededError shouldn't be a fatal error.
Comment 1 Radar WebKit Bug Importer 2021-09-18 07:58:50 PDT
<rdar://problem/83271244>
Comment 2 Jean-Yves Avenard [:jya] 2021-09-20 06:31:19 PDT
This issue occurs because the page keeps loading the content in a loop. The initial WebM Segment contains a set length.

libwebm errors when it sees content further than the initial segment length.

We should ignore that length as both Firefox and Chrome are doing.
Comment 3 Ahmad Saleem 2023-09-20 03:08:44 PDT
@jya - Seems to load fine in STP178, is it fixed?