Closed Bug 235744 Opened 21 years ago Closed 21 years ago

Expose StorageStream class to Javascript

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: nsayer, Assigned: timeless)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: 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['@mozilla.org/storagestream;1'] Actual Results: Got nothing Expected Results: @mozilla.org/storagestream;1
Attached patch Proposed patch (obsolete) — Splinter Review
Assignee: wchang0222 → dougt
Component: NSPR → XPCOM
Product: NSPR → Browser
Version: other → Trunk
Version: Trunk → 1.0 Branch
QA Contact: wchang0222 → dougt
Version: 1.0 Branch → Trunk
Attachment #142357 - Flags: review?(dougt)
Comment on attachment 142357 [details] [diff] [review] Proposed patch r+sr=darin if you make all the '\'-chars line up :)
Attachment #142357 - Flags: superreview+
Attachment #142357 - Flags: review?(dougt)
Attachment #142357 - Flags: review+
Assignee: dougt → nsayer
URL: n/a
mozilla/xpcom/build/nsXPComInit.cpp 1.193 mozilla/xpcom/io/nsStorageStream.h 1.10
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 99338 has been marked as a duplicate of this bug. ***
Assignee: nsayer → timeless
Attachment #142357 - Attachment is obsolete: true
Status: RESOLVED → ASSIGNED
Resolution: FIXED → ---
Attachment #151044 - Flags: superreview?(darin)
Attachment #151044 - Flags: review?(darin)
Comment on attachment 151044 [details] [diff] [review] missing interface changes r+sr=darin 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.
Attachment #151044 - Flags: superreview?(darin)
Attachment #151044 - Flags: superreview+
Attachment #151044 - Flags: review?(darin)
Attachment #151044 - Flags: review+
not sure where else to ask this, are there any examples on how to use this "init" interface?
Flags: blocking1.7?
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).
Status: ASSIGNED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
timeless: we need this on 1.7 branch as well?
Flags: blocking1.7?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: