getURLForIndex with correct parameter thrown a raptorWebShellGetURL exception and do nothing. How to reproduce: Load 4 pages and try to call method getURLForIndex with correct index (0,1,2,3) and note that exception raptorWebShellGetURL thrown. Suggested reason: Typematch in file /mozilla/java/webclient/src_moz/HistoryImpl.cpp:305 wsGetURLForIndexEvent * actionEvent = new wsGetURLForIndexEvent(initContext->sHistory, historyIndex); If change initContext->sHistory to sHistory in this line, then it will works correctly. Reproduced on Mozilla M16 and Webclient sources from 07.31.2000
Confirming due to high quality. firstname.lastname@example.org is the man for this file. Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
Vladimir's fix does work. I'll attach a patch for review. Ed
Created attachment 18972 [details] [diff] [review] cvs diff -u of fix for this bug, first iteration.
This fix removes gHistory, and makes it so History.getURLForIndex() works, thanks to email@example.com (Vladimir Strigun). M HistoryImpl.cpp M NativeEventThread.cpp M WindowControlActionEvents.cpp M WindowControlImpl.cpp M WrapperFactoryImpl.cpp M ns_util.h HistoryImpl.cpp NativeEventThread.cpp WindowControlActionEvents.cpp WindowControlImpl.cpp WrapperFactoryImpl.cpp ns_util.h
r = ashuk looks good.
Fix checked in.
Fix checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
Mark this bug as verified. Verifid with Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.1) Gecko/20010910
Status: RESOLVED → VERIFIED
Component: Java APIs to WebShell → Java APIs to WebShell
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.