Closed
Bug 17145
Opened 25 years ago
Closed 25 years ago
Need resource URL that hits profile and install directories
Categories
(Core :: Networking, defect, P3)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: hyatt, Assigned: hyatt)
Details
I need a way to specify a URL that will first check the profile directory and if the file is not found there then it will check the install directory. I believe this functionality should be built in to the resource url and not the chrome url.
Comment 1•25 years ago
|
||
Do you really think that fetching one resource URL should cause this iteration? That seems a little weird to me because now the URL can't specify one location. Wouldn't it be better to try to load one of them and if that fails, try the second?
Assignee | ||
Comment 2•25 years ago
|
||
Ok, I'll do it myself.
Comment 3•25 years ago
|
||
Note that I intend to extend the resource: syntax to allow symbolic roots like the profile directory, or install directory. That should make whatever code you write not have to deal with platform paths, etc. Should I add a dependency on that?
Updated•25 years ago
|
Assignee: warren → hyatt
Target Milestone: M11
Comment 4•25 years ago
|
||
Back to you Dave...
Assignee | ||
Comment 5•25 years ago
|
||
yes
Comment 6•25 years ago
|
||
mass-moving most m11 bugs to m12
Assignee | ||
Updated•25 years ago
|
Assignee: hyatt → warren
Assignee | ||
Comment 7•25 years ago
|
||
Re-assigning to warren, who can close when his mapping support is online (and able to hit the profile dir).
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 8•25 years ago
|
||
I have one last task which is to rename res: to resource: and remove the old one. I've tried it on Windows and it seems to work fine, but haven't on mac and unix yet (although I don't expect any problems). So if you want to try this out, you can use the res: protocol and define a new root by getting the nsIResProtocolHandler and calling AppendSubstitution twice for the 2 directories, e.g.: resPH->AppendSubstitution("<name>", "res://ProfileDir/"); resPH->AppendSubstitution("<name>", "res://InstallDir/"); Of course you'll also need to define ProfileDir and InstallDir in the same way -- I'm not sure where they come from.
Updated•25 years ago
|
Assignee: warren → hyatt
Status: ASSIGNED → NEW
Comment 9•25 years ago
|
||
Ok Hyatt -- you can do this now. Let me know if you need more details, or if you want to tell me where this should go then I can do it. I'd like to code review whatever you do too.
Comment 10•25 years ago
|
||
moving to m13
Updated•25 years ago
|
Target Milestone: M12 → M13
Comment 11•25 years ago
|
||
Bulk move of all Necko (to be deleted component) bugs to new Networking component.
Updated•25 years ago
|
Target Milestone: M13 → M15
Comment 12•25 years ago
|
||
moving to m15
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•25 years ago
|
Target Milestone: M15 → M16
Assignee | ||
Comment 13•25 years ago
|
||
This is implemented, thanks to warren's resource substitution code.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•