Bug 253884 - [MSE] Ensure that SourceBuffer.buffered attribute is modified should eviction occurs
Summary: [MSE] Ensure that SourceBuffer.buffered attribute is modified should eviction...
Status: RESOLVED DUPLICATE of bug 225367
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-14 06:35 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-03-14 19:04 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-03-14 06:35:47 PDT
Per spec, when data is evicted from the source buffer during the Prepare Append Algorithm [1], the buffered attribute should be immediately updated upon returning from the appendBuffer call.

However, as identified in bug 253560, this may not happen.

The code for eviction was exercised in LayoutTests/media/media-source/media-source-append-buffer-full-quota-exceeded-error.html ; however the test relies on MockMediaSource which never uses the GPU process.

We should have a test for this particular case.
Comment 1 Radar WebKit Bug Importer 2023-03-14 06:36:21 PDT
<rdar://problem/106699169>
Comment 2 Jean-Yves Avenard [:jya] 2023-03-14 19:04:33 PDT
Will do so with bug 225367; considering the scenation described is covered in the mock tests.

*** This bug has been marked as a duplicate of bug 225367 ***