Closed
Bug 337561
Opened 19 years ago
Closed 18 years ago
Merge nsJARDirectoryInputStream into nsJARInputStream
Categories
(Core :: Networking: File, defect)
Core
Networking: File
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha1
People
(Reporter: alfredkayser, Assigned: alfredkayser)
References
Details
Attachments
(2 files, 4 obsolete files)
To reduce code, and to increase flexibility towards retrieving an nsIInputStream from a nsIURI (nsIJARURI), I propose to merge nsJARDirectoryInputStream into nsJARInputStream.
This will also make fixing the jarCache issue (bug 333202) easier.
Also, use nsZipReader directly from nsJARInputStream (for both files and directories) to prevent the overhead of nsJAR and nsIZipEntry (allowing to later the remove nsZipEntry easier).
Assignee | ||
Comment 1•19 years ago
|
||
Note, this depends on bug 333129, so to get a compiling and running patch, this patch includes that patch as well (which only touches nsZipArchive.*, while this merge doesn't touch nsZipArchive.*).
Assignee | ||
Comment 2•19 years ago
|
||
Assignee | ||
Comment 3•19 years ago
|
||
Removed dependency to 333129 which is no longer a prerequisite.
No longer depends on: 333129
Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 221682 [details] [diff] [review]
Patch without the bug 333129 patch
Darin, can you review this?
And also give some tips/thoughts on the AUTF8String/string usage as params for the IDL?
Attachment #221682 -
Flags: review?(darin)
Comment 5•19 years ago
|
||
Comment on attachment 221682 [details] [diff] [review]
Patch without the bug 333129 patch
changes to interfaces require the interface UUID to be changed.
this patch should probably include the removal of nsJARDirectoryInputStream.* so that when someone goes to check this in, they know to remove those files.
r=darin with those fixes
Attachment #221682 -
Flags: review?(darin) → review+
Assignee | ||
Comment 6•19 years ago
|
||
Bzbarsky, can you review this?
I want to have this out of the way, so that I can work on the other bugs for libjar: bug 333129, bug 337120, bug 203627, bug 247458
Attachment #221681 -
Attachment is obsolete: true
Attachment #221682 -
Attachment is obsolete: true
Attachment #230734 -
Flags: superreview?(bzbarsky)
Comment 7•19 years ago
|
||
I'm not going to be able to get to this for at least a week; more likely 2-3 weeks. Please find another sr if this is blocking you in any way.
Assignee | ||
Comment 8•19 years ago
|
||
Comment on attachment 230734 [details] [diff] [review]
V3: New UUID and included the cvs removal of nsJARDir...
Darin, can you do the SR, or do you known someelse who can/must do this?
Attachment #230734 -
Flags: superreview?(bzbarsky) → superreview?(darin)
Comment 9•19 years ago
|
||
Comment on attachment 230734 [details] [diff] [review]
V3: New UUID and included the cvs removal of nsJARDir...
>+++ ./nsIZipReader.idl 2006-07-26 14:19:51.570980800 +0200
> /**
> * Returns an input stream containing the contents of the specified zip
> * entry.
> */
> nsIInputStream getInputStream(in string zipEntry);
>+ nsIInputStream getInputStreamSpec(in AUTF8String aJarSpec, in string zipEntry);
> };
I think you should document this new function. It's not clear from the
information here what aJarSpec means. Also, what do you think about
naming it "getInputStreamWithSpec" or "getInputStreamForSpec"?
Comment 10•18 years ago
|
||
Comment on attachment 230734 [details] [diff] [review]
V3: New UUID and included the cvs removal of nsJARDir...
minusing to get attention. please see previous comment.
Attachment #230734 -
Flags: superreview?(darin) → superreview-
Assignee | ||
Comment 11•18 years ago
|
||
Added comments to the new function in the IDL, and updated to current tree.
Attachment #230734 -
Attachment is obsolete: true
Attachment #238658 -
Flags: superreview?(darin)
Updated•18 years ago
|
Attachment #238658 -
Flags: superreview?(darin) → superreview+
Updated•18 years ago
|
Whiteboard: checkin required → [checkin needed]
Updated•18 years ago
|
Assignee: nobody → alfredkayser
Comment 13•18 years ago
|
||
mozilla/modules/libjar/nsJAR.cpp 1.123
mozilla/modules/libjar/nsIZipReader.idl 1.21
mozilla/modules/libjar/objs.mk 1.9
mozilla/modules/libjar/nsJAR.h 1.50
mozilla/modules/libjar/nsJARChannel.cpp 1.122
mozilla/modules/libjar/nsJARDirectoryInputStream.cpp 1.3
mozilla/modules/libjar/nsJARInputStream.cpp 1.29
mozilla/modules/libjar/nsJARInputStream.h 1.16
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha
Comment 14•18 years ago
|
||
I backed out this patch because it caused bustage (ReadDirectory has no aBuffer or aBytesRead), and I'd rather not have to try and deal with the bustage of something that obviously hasn't been compiled.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 15•18 years ago
|
||
Fixed the attribute names of ReadDirectory to be more inline with the rest of the code, so that the NS_ASSERTION's won't fail to compile in debug mode
Attachment #238658 -
Attachment is obsolete: true
Attachment #239981 -
Flags: superreview?(gavin.sharp)
Comment 16•18 years ago
|
||
Comment on attachment 239981 [details] [diff] [review]
V5: Shame on me! attribute names don't match the NS_ASSERTION's
Assuming this differs from the last patch only because of renamed arguments, and that this compiles with DEBUG both enabled and disabled, this should be fine to check in.
Attachment #239981 -
Flags: superreview?(gavin.sharp)
Assignee | ||
Comment 17•18 years ago
|
||
Assignee | ||
Comment 18•18 years ago
|
||
Who wants to do the checkin for me?
Note, the original patch worked. It only failed to compile in debugmode.
Whiteboard: [checkin needed]
Comment 19•18 years ago
|
||
mozilla/modules/libjar/nsJARDirectoryInputStream.cpp 1.5
mozilla/modules/libjar/nsJARChannel.cpp 1.124
mozilla/modules/libjar/nsJAR.h 1.52
mozilla/modules/libjar/nsJAR.cpp 1.125
mozilla/modules/libjar/nsIZipReader.idl 1.23
mozilla/modules/libjar/nsJARInputStream.cpp 1.31
mozilla/modules/libjar/nsJARInputStream.h 1.18
mozilla/modules/libjar/objs.mk 1.11
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Assignee | ||
Comment 20•18 years ago
|
||
Thanks, this time is worked.
libjar50.so
Total: -1108 (+2638/-3746)
Code: -1040 (+2634/-3678)
Data: -68 (+4/-68)
Status: RESOLVED → VERIFIED
Comment 21•18 years ago
|
||
So... this patch caused a significant (and bad) behavior change. See bug 367459.
Was this the intended effect?
Depends on: 367459
Depends on: 367817
You need to log in
before you can comment on or make changes to this bug.
Description
•