Closed Bug 103050 Opened 24 years ago Closed 24 years ago

last index value is passed to nsISHistoryListener::OnHistoryGotoIndex()

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: depman1, Assigned: radha)

References

()

Details

Attachments

(1 file)

related to bug 92664. Tested against mozilla 0.9.4+ Gecko 20011001. 0. In source code, change index in nsIWebNav.cpp: CNsIWebNav::GoToIndexTest() as appropriate. Currently, it's set to 0. 1. Compile and Launch testembed: cd /mozilla/embedding/qa/testembed nmake -f makefile.win cd /mozilla/dist/WIN_32D.OBJ/bin testembed 2. Enter in 2+ urls. Make sure you load a total number of urls which exceeds the index by at least 2. i.e. if the index = 2, enter 4 urls. 3. From Tests menu, select "Add History Listener". 4. From Interfaces menu, select "nsIWebNav" 5. Navigate through tests, until you perform the GoToIndex() test. Result: OnHistoryGotoIndex() is called, but index value = 3 (the last index value, since the index starts at 0) Expected: The index value passed to the listener method = 2 (the true set index).
changed qa contact to depstein, assigned to radha.
Assignee: adamlock → radha
QA Contact: mdunn → depstein
Target Milestone: --- → mozilla0.9.7
David, as we discussed last week, i don't believe that this is a bug. if you agree, please close this out. Thanks,
this is a different bug: passes to the history listener the last uri index value instead of the index valued called through goToIndex().
Comment on attachment 57294 [details] [diff] [review] patch to nsSHistory.cpp r=chak
Attachment #57294 - Flags: review+
Comment on attachment 57294 [details] [diff] [review] patch to nsSHistory.cpp sr=alecf
Attachment #57294 - Flags: superreview+
fix checked in
Actually marking fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
fixed. verified in 11/28 mozilla debug build. correct index value is passed to callback.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: