Bug 257037 - [ManagedMSE] JS ManagedSourceBuffer object doesn't present any of its attributes
Summary: [ManagedMSE] JS ManagedSourceBuffer object doesn't present any of its attributes
Status: RESOLVED FIXED
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-05-19 09:12 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-05-19 20:36 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-05-19 09:12:36 PDT
When you call `addSourceBuffer` on a ManagedMediaSource you actually get a `ManagedSourceBuffer`; however as far as the JS binding is concerned, the object looks only like a `MediaSource` and none of its IDL methods are actually usable.

The appropriate custom `toJS` methods are missing and so the wrong JS wrapper type is created (a JSSourceBuffer instead of JSManagedSourceBuffer)
Comment 1 Radar WebKit Bug Importer 2023-05-19 09:12:59 PDT
<rdar://problem/109569570>
Comment 2 Jean-Yves Avenard [:jya] 2023-05-19 11:52:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14092
Comment 3 EWS 2023-05-19 20:36:06 PDT
Committed 264284@main (202d7e72c2c6): <https://commits.webkit.org/264284@main>

Reviewed commits have been landed. Closing PR #14092 and removing active labels.