Closed
Bug 346010
Opened 18 years ago
Closed 14 years ago
Decom nsIJAR by merging it into nsIZipReader
Categories
(Core :: Networking: JAR, defect)
Core
Networking: JAR
Tracking
()
RESOLVED
FIXED
People
(Reporter: alfredkayser, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
(Keywords: memory-footprint)
Attachments
(1 file)
11.94 KB,
patch
|
taras.mozilla
:
review+
benjamin
:
superreview+
|
Details | Diff | Splinter Review |
nsIJAR is only used to define getCertificatePrincipal and ManifestCount for a ZipReader. By moving nsIJAR into nsIZipReader, we can skip on a number of needless do_QueryInterfaces (as the underlying object is always the same): nsCOMPtr<nsIJAR> systemCertJar(do_QueryInterface(systemCertZip, &rv)); if (NS_FAILED(rv)) return NS_ERROR_FAILURE; rv = systemCertJar->GetCertificatePrincipal(nsnull, getter_AddRefs(mSystemCertificate)); becomes: rv = systemCertZip->GetCertificatePrincipal(nsnull, getter_AddRefs(mSystemCertificate)); Callers are: http://lxr.mozilla.org/seamonkey/source/xpinstall/src/nsSoftwareUpdateRun.cpp#109 http://lxr.mozilla.org/seamonkey/source/caps/src/nsScriptSecurityManager.cpp#2645 http://lxr.mozilla.org/seamonkey/source/modules/libjar/nsJARChannel.cpp#480
Reporter | ||
Comment 1•18 years ago
|
||
Darin, what do you think about this?
Reporter | ||
Updated•18 years ago
|
Component: Networking: File → Networking: JAR
Updated•18 years ago
|
QA Contact: networking.file → networking.jar
Assignee | ||
Comment 2•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Attachment #425156 -
Flags: review?(tglek)
Reporter | ||
Comment 3•14 years ago
|
||
Looks good!
Comment 4•14 years ago
|
||
This code simplification looks good to me. Benjamin can we take a change that moves methods between public interfaces like this?
Comment 5•14 years ago
|
||
They aren't frozen, are they? Should be fine.
Updated•14 years ago
|
Attachment #425156 -
Flags: review?(tglek) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #425156 -
Flags: superreview?(benjamin)
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → m_kato
Updated•14 years ago
|
Attachment #425156 -
Flags: superreview?(benjamin) → superreview+
Assignee | ||
Comment 6•14 years ago
|
||
landed http://hg.mozilla.org/mozilla-central/rev/9dbceefc8c6c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•