On 4/10/15 7:43 PM, Jonas Sicking wrote:
One option is to make the xpidl interface always return a File, but
make the .webidl interface return files or blobs.

Why, exactly? If we want to do this, just have them both return a Blob in terms of the IDL. If it happens to be a Blob that's also a File, fine.

We'd still have to check internal JS consumers though. But I think
that's the right thing to do.

I'm more worried about internal C++ consumers, honestly. Have to audit them all to make sure they're not assuming they can get a filename and such.

It'd be less painful to audit this if we didn't internally use "File" to refer to Blobs. :(

-Boris

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to