User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030510 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030510 Going to an URL with a destination anchor (A HREF="foo.html#Anchor") that is not specified in that document (with A NAME) opens to the top of that page. If you click on a valid destination anchor link, it'll take you to that spot on the page. However, if you then click on the back button, it doesn't return to the top of the page. Subsequent back clicks also do nothing. Reproducible: Always Steps to Reproduce: 1. Go to the link ("SARS" is not a named destination anchor on that page) 2. Click on "HIV". 3. Click back button Actual Results: Nothing Expected Results: Gone back to the top of the page.
Created attachment 127216 [details] part two of testcase Part one and part two must be together in the same folder. I don't think this will work from Bugzilla.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: radha → bzbarsky
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.5alpha
15 years ago
Summary: Cannot back to non-existant destination anchor after visiting another destination anchor → [FIX]Cannot back to non-existant destination anchor after visiting another destination anchor
Comment on attachment 127217 [details] [diff] [review] Proposed patch The key here is not propagating the return value of GoToAnchor to our caller... The rest is minor cleanup.
Comment on attachment 127217 [details] [diff] [review] Proposed patch r=jag
Attachment #127217 - Flags: review?(jaggernaut) → review+
Attachment #127217 - Flags: superreview?(dbaron) → superreview+
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED
Verified fixed. Thanks.
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: chrispetersen → docshell
You need to log in before you can comment on or make changes to this bug.