Closed
Bug 248044
Opened 20 years ago
Closed 20 years ago
JAR protocol handler should be moved out of necko and into libjar
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha4
People
(Reporter: darin.moz, Assigned: Biesinger)
Details
Attachments
(2 files, 2 obsolete files)
25.70 KB,
patch
|
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
3.86 KB,
patch
|
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
JAR protocol handler should be moved out of necko and into libjar. Justification: The JAR protocol handler requires CAPS to get the channel owner from the script security context in form of an nsIPrincipal. I've always wondered why the JAR protocol even lives in Necko. It seems like it could be moved into libjar. Then libjar could depend on necko, etc. Necko doesn't have much use for the JAR protocol internally. It's on par with the CHROME protocol, which is not included in Necko either.
Reporter | ||
Updated•20 years ago
|
Keywords: helpwanted
Target Milestone: --- → Future
Assignee | ||
Comment 1•20 years ago
|
||
-> me and targeting optimistically
Assignee | ||
Comment 2•20 years ago
|
||
I'll attach a patch showing the changes I made to the moved files separately
Assignee | ||
Comment 3•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #151828 -
Flags: review?(bsmedberg)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•20 years ago
|
||
Comment on attachment 151829 [details] changes to moved files >+ nsCOMPtr<nsIStandardURL> stdURL(do_CreateInstance("@mozilla.org/network/standard-url;1")); use NS_STANDARDURL_CONTRACTID instead? it makes life easier if we ever wish to change consumers over to another nsIStandardURL implementation while maintaining the old one.
Reporter | ||
Comment 5•20 years ago
|
||
Comment on attachment 151828 [details] [diff] [review] patch one comment: make sure that libjar still builds correctly in standalone mode. we probably do not want standalone libjar to include the jar protocol handler.
Assignee | ||
Comment 6•20 years ago
|
||
standalone libjar just uses the files listed at http://lxr.mozilla.org/seamonkey/source/modules/libjar/objs.mk#38 afaict... so it should continue to work. any idea how I can build it?
Reporter | ||
Comment 7•20 years ago
|
||
cc'ing dveditz dan: can you confirm that this is not going to cause problems for the standalone version of libjar? thanks!
Comment 8•20 years ago
|
||
The "standalone" version for the installer is really just the basic nsZipArchive code, should be fine to move all this stuff into the Mozilla component.
Assignee | ||
Comment 9•20 years ago
|
||
urg, this patch is incomplete, it doesn't remove the dirs from allmakefiles.sh, and the necko_jar.xpt file from various installer file lists I'll make a new patch sometime during the next few days, feel free to review the rest of the patch in the meantime :)
Assignee | ||
Updated•20 years ago
|
Target Milestone: mozilla1.8alpha2 → mozilla1.8beta
Comment 10•20 years ago
|
||
Comment on attachment 151828 [details] [diff] [review] patch With allmakefiles.sh changes, packaging xpt files, and darin's comments, r=me
Attachment #151828 -
Flags: review?(bsmedberg) → review+
Assignee | ||
Comment 11•20 years ago
|
||
Attachment #151828 -
Attachment is obsolete: true
Attachment #151829 -
Attachment is obsolete: true
Assignee | ||
Comment 12•20 years ago
|
||
Moved files: netwerk/protocol/jar/src/nsJARProtocolHandler.cpp netwerk/protocol/jar/src/nsJARURI.cpp netwerk/protocol/jar/src/nsJARURI.h netwerk/protocol/jar/src/nsJARChannel.h netwerk/protocol/jar/src/nsJARProtocolHandler.h netwerk/protocol/jar/src/nsJARChannel.cpp netwerk/protocol/jar/public/nsIJARURI.idl netwerk/protocol/jar/public/nsIJARProtocolHandler.idl netwerk/protocol/jar/public/nsIJARChannel.idl All with an identical name to modules/libjar.
Assignee | ||
Comment 13•20 years ago
|
||
updated per darin's comment
Assignee | ||
Comment 14•20 years ago
|
||
Comment on attachment 158774 [details] [diff] [review] changes to moved files, v2 In addition to the two patches here, I'll remove all of netwerk/modules/jar, and get someone to copy the files as described above.
Attachment #158774 -
Flags: superreview?(darin)
Assignee | ||
Updated•20 years ago
|
Attachment #158758 -
Flags: superreview?(darin)
Reporter | ||
Comment 15•20 years ago
|
||
Comment on attachment 158758 [details] [diff] [review] changes to existing files looks like you also need to remove the "#undef NECKO_PROTOCOL_jar" line from necko-config.h.in, right?
Attachment #158758 -
Flags: superreview?(darin) → superreview+
Reporter | ||
Updated•20 years ago
|
Attachment #158774 -
Flags: superreview?(darin) → superreview+
Comment 16•20 years ago
|
||
Repository copy per comment 12 is done now. /be
Assignee | ||
Comment 17•20 years ago
|
||
patch checked in. leaving open as a reminder to remove the old files, once tinderboxes are green
Assignee | ||
Comment 18•20 years ago
|
||
tboxes are green, old files removed.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
This seems to have broken Camino.
Assignee | ||
Comment 20•20 years ago
|
||
sorry about the camino breakage :( should be fixed now, thanks to pinkerton.
Assignee | ||
Updated•20 years ago
|
Target Milestone: mozilla1.8beta → mozilla1.8alpha4
You need to log in
before you can comment on or make changes to this bug.
Description
•