w3c / FileAPI

File API
https://w3c.github.io/FileAPI/
Other
104 stars 44 forks source link

Include MediaSource overload for createObjectURL #100

Closed saschanaz closed 5 years ago

saschanaz commented 6 years ago

Currently the MSE spec adds overload for createObjectURL using partial interface, but the Web IDL spec says:

Operations must not be overloaded across interface, partial interface, interface mixin, and partial interface mixin definitions.

We should directly include the overload in the original definition.

annevk commented 6 years ago

Another reason this is a good idea is that we don't really want to spread this pattern further. It's incredibly leaky and error-prone.

wolenetz commented 6 years ago

Further: "If [Exposed] appears on an overloaded operation, then it must appear identically on all overloads." per https://heycam.github.io/webidl/#Exposed (as noted by @bzbarsky https://github.com/w3c/media-source/issues/168#issuecomment-410269436)