Closed Bug 711022 Opened 14 years ago Closed 14 years ago

Should be able to wrap nsIFile in nsIDOMFile without having some arbitrary window around

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: asaf, Unassigned)

Details

I would like to use readAsArrayBuffer for reading a binary file, in the context of a js module. This requires wrapping the file in question as nsIDOMFile. However, the helper method for that lives in dom-windows-utils, making it unusable without some window around.
You can't just do "new File(nsIFile)"?
I think you're confusing nsIDOMFile with some other file wrapper. nsIDOMFile sure has no ctro like that.
Sorry for the spam, really.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.