Closed
Bug 376719
Opened 18 years ago
Closed 12 years ago
Make it possible to implement nsIInputStream from JavaScript
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Yoric, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061025 Firefox/2.0 (Swiftfox)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061025 Firefox/2.0 (Swiftfox)
At the moment, implementing a nsIInputStream from JavaScript requires complex manipulations involving nsIPipe. This becomes worse when one intends to write a converter from a nsIInputStream to another nsIInputStream, as the developer further needs to manipulate nsIInputStreamPump and threads.
While it is quite easy to implement a nsIScriptableInputStream from JS, there is no facility to convert a nsIScriptableInputStream to a general-purpose nsIInputStream.
My guess is that it's quite easy to implement -- in C++.
Pretty please ?
Reproducible: Always
Updated•18 years ago
|
Assignee: general → nobody
Component: General → XPCOM
Product: Mozilla Application Suite → Core
QA Contact: general → xpcom
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•