Open Ms2ger opened 5 years ago
This can be worked around easily with two partial interfaces.
How so? https://heycam.github.io/webidl/#idl-overloading says:
Operations must not be overloaded across interface, partial interface, interface mixin, and partial interface mixin definitions.
Now that said, I don't know whether browsers actually implement that last requirement in their IDL processing. I know Gecko does not.
What Gecko does implement is that it requires the set of extended attributes on all overloads of a method to be the same.
This can be worked around easily with two partial interfaces. Perhaps the check should be based on the exposure sets.
Note that
createObjectURL
used to have two overloads with different exposure; now it acceptsMediaSource
in workers even though it isn't exposed there.