Closed
Bug 68086
Opened 24 years ago
Closed 23 years ago
Generic about: redirector
Categories
(Core :: Networking, enhancement)
Core
Networking
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: BenB, Assigned: gagan)
References
Details
Attachments
(1 file)
2.03 KB,
patch
|
Details | Diff | Splinter Review |
We have at least 3 classes which just redirect, more likely to come. This is code redundancy. We should have one class which keeps a list of URLs to redirect. Note that this class must not assume "default" ownership of about:* - there might be other about URL types similar to this one, which don't have hardcoded about: URLs. (E.g. an about:<developer>, like in 4.x., which doesn't use static URLs, but somehow figures the developer names and their URL out from the Contributors list or some other magic).
Reporter | ||
Comment 1•24 years ago
|
||
Any ideas how to implement it? I couldn't figuer it our back in 1999.
Comment 2•23 years ago
|
||
Shouldn't be too hard, eh? Cc'ing netwerk gurus. /be
Comment 3•23 years ago
|
||
shouldn't be too hard, but it's definitely well placed in the "future enhancement" category... we have much more pressing issues at hand ;-)
can't do future-- we need to clean this up sooner.
Target Milestone: Future → mozilla0.9
Reporter | ||
Comment 6•23 years ago
|
||
Thanks gagan. I'm willing to assist you.
The two new files nsAboutRedirector.[h|cpp] have been checked in. Pls review those as well. http://lxr.mozilla.org/seamonkey/source/netwerk/protocol/about/src/nsAboutRedire ctor.cpp and http://lxr.mozilla.org/seamonkey/source/netwerk/protocol/about/src/nsAboutRedire ctor.h
Status: NEW → ASSIGNED
Comment 9•23 years ago
|
||
Hi Gagan, these changes look good to me :-) i'll give you an r/sr=rpotts (whichever). lets check it in and clean some stuff up ! - -rick
Comment 10•23 years ago
|
||
r/sr=darin
Reporter | ||
Comment 11•23 years ago
|
||
Gagan, thanks for fixing this. darin, rpotts, you are too fast ;-P. FWIW, the changes look good to me "on paper", modulo comments below. If I only knew it would be that easy, I'd implemented it myself. :-) Will test the change when the update / compile finishes (probably tomorrow - 4AM here). Comments: - I assume you will change the makefiles for all platforms before you check in. - I would have written static const int kRedirTotal = 3; static const char *kRedirMap[kRedirTotal][2] = { ...
Reporter | ||
Comment 12•23 years ago
|
||
> - I would have written
(of course, that's only style.)
Thanks again.
Assignee | ||
Comment 13•23 years ago
|
||
fix is in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 14•23 years ago
|
||
The files nsAboutCredits.*, nsAboutPlugins.* and mzAboutMozilla.* are still in the tree (and active). Should I remove them? (r=? sr=?) tever, should I do the verification?
Reporter | ||
Comment 15•23 years ago
|
||
(active = not cvs removed. They are not part of the build anymore, as far as I can see.)
Comment 16•23 years ago
|
||
Clear removals thru leaf. /be
Assignee | ||
Comment 17•23 years ago
|
||
yup I left them to make sure the transition went smooth. Now that all platforms are running smoothly we should be able to remove them. Leaf should still clear this.
Comment 18•23 years ago
|
||
It would be ideal to have someone with a mac build remove the files in question from their tree and rebuild, since i can't check mac projects for references to them. Any mac buddies care to remove the three files before their next build?
Comment 20•23 years ago
|
||
This works, because I stepped through the code about a month ago. VERIFIED.
Status: RESOLVED → VERIFIED
Comment 21•23 years ago
|
||
all old files have been removed in bug 123580 about:config needs to be done as well, see bug 127252
Comment 22•23 years ago
|
||
can different security levels for different URLs be implemented for redirector? see bug 127252
Comment 23•23 years ago
|
||
cc'ing mstoltz... see comment #22
You need to log in
before you can comment on or make changes to this bug.
Description
•