[Bug 25923] isTypeSupported should be asynchronous

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25923

--- Comment #17 from Boris Zbarsky <bzbarsky@mit.edu> ---
> This does not describe the current form of the API.

Ah, thank you.  So I'm not sure what the point of the API in the form it's in
is, then.  A UA can just always return "maybe", which is not helpful.

> For example, one possible solution would be to return "maybe" (or some other
> relevant value) in the case where the CDM is not yet downloaded.

Sure, but then the page would want to know when the download is done so it can
ask again, right?

I'm not tied to a particular solution, but I do think that we want an API here
that is actually useful to web pages and that can handle the "answer is not
known yet, but will be known pretty soon" situation.  I'm quite open to how
that API should look, though typically for modern web APIs it would involve
returning a Promise for the value.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 28 August 2014 00:13:35 UTC