Bug 253883

Summary: [MSE] SourceBuffer.buffered should return the same object if it's not modified
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/39075

Jean-Yves Avenard [:jya]
Reported 2023-03-14 05:01:25 PDT
Per spec, https://w3c.github.io/media-source/#dom-sourcebuffer-buffered Step 5, ``` 5. If intersection ranges does not contain the exact same range information as the current value of this attribute, then update the current value of this attribute to intersection ranges. 6. Return the current value of this attribute. ``` The current value of this attribute should only be modified if it has changed. However, currently a copy of the attribute is always returned: https://searchfox.org/wubkat/rev/7a7d33c945c423639d0e625352d98c40411716f2/Source/WebCore/Modules/mediasource/SourceBuffer.cpp#123-124 ``` // 2. Return a new static normalized TimeRanges object for the media segments buffered. return m_private->buffered()->copy(); ``` seems to be based on an old spec.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-03-14 05:01:50 PDT
Jean-Yves Avenard [:jya]
Comment 2 2023-03-19 00:16:12 PDT
Jean-Yves Avenard [:jya]
Comment 3 2023-03-19 02:02:57 PDT
EWS
Comment 4 2023-03-19 17:41:53 PDT
Committed 261848@main (f373c652ff7f): <https://commits.webkit.org/261848@main> Reviewed commits have been landed. Closing PR #11694 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.