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)
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)"?
| Reporter | ||
Comment 2•14 years ago
|
||
I think you're confusing nsIDOMFile with some other file wrapper. nsIDOMFile sure has no ctro like that.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 4•14 years ago
|
||
Sorry for the spam, really.
| Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•