On Fri, Apr 10, 2015 at 7:15 PM, Boris Zbarsky <bzbar...@mit.edu> wrote: > 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.
So that C++ callers, which go through the xpidl interface, would still get a real File wrapping the Blob, but JS callers would just get the Blob. Though if we're only worried about internal C++ callers, then I suspect it's easier to audit than to add this complexity. / Jonas _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform