Closed Bug 68086 Opened 24 years ago Closed 23 years ago

Generic about: redirector

Categories

(Core :: Networking, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: BenB, Assigned: gagan)

References

Details

Attachments

(1 file)

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).
Any ideas how to implement it? I couldn't figuer it our back in 1999.
Target Milestone: --- → Future
Shouldn't be too hard, eh?  Cc'ing netwerk gurus.

/be
shouldn't be too hard, but it's definitely well placed in the "future
enhancement" category... we have much more pressing issues at hand ;-)
->moi
Assignee: neeti → gagan
can't do future-- we need to clean this up sooner.
Target Milestone: Future → mozilla0.9
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
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
r/sr=darin
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] = {
...
> - I would have written

(of course, that's only style.)

Thanks again.
fix is in. 
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
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?
(active = not cvs removed. They are not part of the build anymore, as far as I
can see.)
Clear removals thru leaf.

/be
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.
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?
need an easy set of steps to verify this...
QA Contact: tever → bbaetz
This works, because I stepped through the code about a month ago.

VERIFIED.
Status: RESOLVED → VERIFIED
all old files have been removed in bug 123580

about:config needs to be done as well, see bug 127252
can different security levels for different URLs be implemented for redirector?
see bug 127252
cc'ing mstoltz... see comment #22
Blocks: 96712
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: