Bug 260739

Summary: Create 'CanPlayTypeResult' enum in HTMLMediaElement.idl for 'type' as per WebIDL spec
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: annevk, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-08-25 14:42:39 PDT
SSIA

Adding FIXME for these in HTMLMediaElement.idl and as per Web-Spec:

https://html.spec.whatwg.org/multipage/media.html#media-elements

We should introduce 'enum' and leverage it for:

__________

DOMString canPlayType(DOMString type);

__________

Thanks!
Comment 1 Anne van Kesteren 2023-08-26 02:31:00 PDT
Not sure this is worth doing before WebKitLegacy disappears. It seems like you'd have to covert the enum back to an NSString in Source/WebKitLegacy/mac/DOM/DOMHTMLMediaElement.mm until that happens.
Comment 2 Radar WebKit Bug Importer 2023-09-01 14:43:13 PDT
<rdar://problem/114841766>