Closed
Bug 17145
Opened 27 years ago
Closed 26 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•27 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•27 years ago
|
||
Ok, I'll do it myself.
Comment 3•27 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•27 years ago
|
Assignee: warren → hyatt
Target Milestone: M11
Comment 4•27 years ago
|
||
Back to you Dave...
| Assignee | ||
Comment 5•27 years ago
|
||
yes
Comment 6•27 years ago
|
||
mass-moving most m11 bugs to m12
| Assignee | ||
Updated•26 years ago
|
Assignee: hyatt → warren
| Assignee | ||
Comment 7•26 years ago
|
||
Re-assigning to warren, who can close when his mapping support is online (and
able to hit the profile dir).
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 8•26 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•26 years ago
|
Assignee: warren → hyatt
Status: ASSIGNED → NEW
Comment 9•26 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•26 years ago
|
||
moving to m13
Updated•26 years ago
|
Target Milestone: M12 → M13
Comment 11•26 years ago
|
||
Bulk move of all Necko (to be deleted component) bugs to new Networking
component.
Updated•26 years ago
|
Target Milestone: M13 → M15
Comment 12•26 years ago
|
||
moving to m15
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•26 years ago
|
Target Milestone: M15 → M16
| Assignee | ||
Comment 13•26 years ago
|
||
This is implemented, thanks to warren's resource substitution code.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•