Closed Bug 48885 Opened 24 years ago Closed 24 years ago

Mozilla mis-calculates destination; two consecutive redirects (one HTTP, one JS)

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: jrgmorrison, Assigned: mscott)

Details

(Whiteboard: [nsbeta3+])

The link for CBS Marketwatch on the Netscape Home page points to

http://info.netscape.com/fwd/hm608b1/http://personalfinance.netscape.com/finance/

that page sends out a 302 redirect to

     http://personalfinance.netscape.com/finance/

and that page does an immediate javascript

     'window.location.replace("/finance/main.tmpl");'

with the end result that Mozilla goes to (in error)

     http://info.netscape.com/finance/main.tmpl

which reports '404 Not Found'

In other words, the javascript redirect in Mozilla is done relative to the
initial URL, instead of relative to URL of the page that Mozilla is currently
handling (the URL of the first redirect).



Nav4.x, on the other hand, winds up at

     http://personalfinance.netscape.com/finance/main.tmpl

which is the correct final destination.
I seem to hitting this bug in a lot of places on Netcenter today. (Nominating
for nsbeta3 just to make sure this gets addressed -- have to be able to browse
Netcenter).

Another way to get this same bug is to go to the Netscape home page, scroll
down to the international section "Australia, Brazil, Canada ...", click on 
Australia, on the next page click on "Arts", and on that page click on 
"Architecture".
Keywords: netcenter, nsbeta3
Target Milestone: --- → Future
mscott this relates to the new changes you put in for the nsIHTTPEventSink. This
might just be a dup of one of the several bug related to updating the URL
correctly for redirected cases. 
Assignee: gagan → mscott
giving plus nomination because the other bugs related to this are also plussed.
I believe we just fixed this tonight so go ahead and try it again tomorrow. 
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: [nsbeta3+]
verified:
Win NT 200000808
Linux 2000090708
Mac 2000090704
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.