Closed Bug 9699 Opened 26 years ago Closed 26 years ago

'back ()' functionality on pages resulting from redirects has incorrect path

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jdaly, Assigned: radha)

References

()

Details

on cvs build from 12 jul 1999 form on http://server/page_one.html has action http://server/some-path/program which performs a redirect (via 'location' http header) to http://server/result.html a 'back ()' function on this page incorrectly results in http://server/some-path/page_one.html i wish i had a url for you, but i'm behind a firewall...
Assignee: mccabe → vidur
Component: Javascript Engine → DOM Level 0
wrong component
QA Contact: cbegle → desale
Target Milestone: M15
This one smells like a necko/history bug to me. Copying gagan, I have no idea who owns history. We can get to Beta1 without this.
Assignee: vidur → radha
I think radha gets this one. for future reference global history is owned by waterson and session history by radha.
Status: NEW → ASSIGNED
Target Milestone: M15 → M11
Blocks: 16654
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
After a page is done loading, SH is updated with the new url. In the case of redirected urls, it will be the new url as passed by necko. So, this s'd be fixed now. Please verify.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Actually I'm reopening this bug since I seedifferent results on 4.x and apprunner. in 4.x, if I hit back button then intermediate page in this process gets processed again and third page gets loaded as a result. [Which I think is correct.] In above URL there are three pages. (bug9699_one.html) this is first page you load. Here you click button "Change Location". This takes you to second page (bug9699_two.html). This second page redirects you to third page (bug9699_three.html). In 4.x after coming to third page (bug9699_three.html), if you hit back button, it takes you to second page (bug9699_two.html), which again redirects you to third page (bug9699_three.html). In apprunner after coming to third page (bug9699_three.html), if you hit back button then it takes you to first page (bug9699_one.html). [This is wrong. history.back() should take you to second page] STEPS TO REPRODUCE: 1] Load above URL. 2] Click button "Change Location" 3] Click browser back button.
Target Milestone: M11 → M12
M11 out the door, moving to M12.
Status: REOPENED → ASSIGNED
Target Milestone: M12 → M14
I see how 4.x behaves. But I'm not sure if we want to do that for 5.0. With the current 4.x behavior, you are stuck with bug9699_three.html. You can never get back to bug9699_one.html thro' the back button. You have to use the 'Go' menu. cc'ing don for some help with decision making. Can people in the cc list comment please? Even if we decide to fix this the 4.x way, it can not be done in M12 time frame. Moving to M14.
What if _two.html was dynamic content that didn't always issue a redirect? We can't know if we'll get redirected again until we load the page, at which point we should honour the redirection. If the page author wants the current (buggy) Mozilla behaviour, he or she can use history.replace() to remove _two.html's history entry.
Target Milestone: M14 → M12
I think I have a patch fix for this. Shall fix for M12.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
I have checked in my patch fix. Marking fixed.
Status: RESOLVED → VERIFIED
Verified with 1199-11-29-09.
You need to log in before you can comment on or make changes to this bug.