Closed
Bug 63451
Opened 24 years ago
Closed 24 years ago
Move getCertificatePrincipal() from nsIZipReader to nsIJAR
Categories
(Core :: Security, defect)
Core
Security
Tracking
()
VERIFIED
FIXED
People
(Reporter: samir_bugzilla, Assigned: security-bugs)
Details
Attachments
(5 files)
7.53 KB,
patch
|
Details | Diff | Splinter Review | |
7.53 KB,
patch
|
Details | Diff | Splinter Review | |
7.54 KB,
patch
|
Details | Diff | Splinter Review | |
11.33 KB,
patch
|
Details | Diff | Splinter Review | |
18.85 KB,
patch
|
Details | Diff | Splinter Review |
Resurrect nsIJAR. Make nsJAR inherit from nsIJAR and nsIZipRedaer. Move getCertificatePrincipal() from nsIZipReader to nsIJAR. The original intent was to abstract non-zip reader functionality (specifically, security functionality) into a separate interface for a modular design.
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
Reporter | ||
Comment 5•24 years ago
|
||
3rd patch looks good. Minor comments follow. 1> Add nsIJAR.idl to libjar/MANIFEST_IDL 2> Add nsIJAR.idl to libjar/makefile.win 3> Move the certtificate-related constants (NOT_SIGNED et. al.) to nsIJAR.idl. Please build on Win and Mac as well and run an XPInstall sanity test. Thanks.
Assignee | ||
Comment 6•24 years ago
|
||
- nsJAR* zip = (nsJAR*)mZips.Get(&key); // AddRefs + nsJAR* zip = (nsJAR*)(nsIZipReader*)mZips.Get(&key); // AddRefs Can you use one of the NS_*_CAST macros here and in the other like places? I don't understand why this is in the diff: + /* JS_ReportError(aCx, "access disallowed from scripts at %s to documents " "at another domain", str); - nsCRT::free(str); + */ + nsCRT::free(str); + printf("Failed.\n"); but I sure don't like the naked printf.
Assignee | ||
Comment 8•24 years ago
|
||
Contingent on you _not_ removing Pierre from the contributors list, sr=shaver.
Assignee | ||
Comment 10•24 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•