Closed Bug 205213 Opened 21 years ago Closed 21 years ago

[FIX]Cannot back to non-existant destination anchor after visiting another destination anchor

Categories

(Core :: DOM: Navigation, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.5alpha

People

(Reporter: jason.barnabe, Assigned: bzbarsky)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

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.
Attached file part one of testcase
Attached file 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
Keywords: testcase
Taking.
Assignee: radha → bzbarsky
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.5alpha
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
Attached patch Proposed patchSplinter Review
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.
Attachment #127217 - Flags: superreview?(dbaron)
Attachment #127217 - Flags: review?(jaggernaut)
Comment on attachment 127217 [details] [diff] [review]
Proposed patch

r=jag
Attachment #127217 - Flags: review?(jaggernaut) → review+
Attachment #127217 - Flags: superreview?(dbaron) → superreview+
Fixed.
Status: NEW → RESOLVED
Closed: 21 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.

Attachment

General

Created:
Updated:
Size: