Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 235744 - Expose StorageStream class to Javascript
: Expose StorageStream class to Javascript
Product: Core
Classification: Components
Component: XPCOM (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: timeless
: Doug Turner (:dougt)
: Nathan Froyd [:froydnj]
: 99338 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2004-02-26 12:35 PST by Nick Sayer
Modified: 2014-04-26 02:23 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Proposed patch (2.02 KB, patch)
2004-02-26 12:40 PST, Nick Sayer
darin.moz: review+
darin.moz: superreview+
Details | Diff | Splinter Review
missing interface changes (1.20 KB, patch)
2004-06-17 12:57 PDT, timeless
darin.moz: review+
darin.moz: superreview+
Details | Diff | Splinter Review

Description Nick Sayer 2004-02-26 12:35:05 PST
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

In order to be able to do form posting conveniently from Javascript, it would be
helpful to expose the StorageStream object.

Reproducible: Always
Steps to Reproduce:
1. in xpcshell
js> Components.classes[';1']

Actual Results:  
Got nothing

Expected Results:;1
Comment 1 Nick Sayer 2004-02-26 12:40:27 PST
Created attachment 142357 [details] [diff] [review]
Proposed patch
Comment 2 Darin Fisher 2004-03-01 16:35:44 PST
Comment on attachment 142357 [details] [diff] [review]
Proposed patch

r+sr=darin if you make all the '\'-chars line up :)
Comment 3 timeless 2004-03-01 19:35:15 PST
mozilla/xpcom/build/nsXPComInit.cpp 	1.193
mozilla/xpcom/io/nsStorageStream.h 	1.10
Comment 4 Christian :Biesinger (don't email me, ping me on IRC) 2004-04-07 16:12:36 PDT
*** Bug 99338 has been marked as a duplicate of this bug. ***
Comment 5 timeless 2004-06-17 12:57:58 PDT
Created attachment 151044 [details] [diff] [review]
missing interface changes
Comment 6 Darin Fisher 2004-06-17 13:19:45 PDT
Comment on attachment 151044 [details] [diff] [review]
missing interface changes


though, it'd be nice if maxSize were replaced with segmentCount instead.  that
is the convention followed by newer similar interfaces in necko and xpcom.
Comment 7 basic 2004-06-17 23:47:11 PDT
not sure where else to ask this, are there any examples on how to use this
"init" interface?
Comment 8 timeless 2004-06-18 02:35:44 PDT
nope, sorry :)
a quick scan seems to indicate that nsMemoryCacheDevice uses init(4096, -1, null).

mozilla/xpcom/io/nsIStorageStream.idl 	1.5
mozilla/xpcom/io/nsStorageStream.h 	1.12
mozilla/xpcom/io/nsStorageStream.cpp 	1.29

sorry about the mess, i totally forgot about the related changes. i just pulled
them from my cvs repository as i ran into them, so they really aren't my changes
(and we made them nearly four months ago).
Comment 9 basic 2004-06-18 07:56:15 PDT
timeless: we need this on 1.7 branch as well?

Note You need to log in before you can comment on or make changes to this bug.