Status: Unconfirmed Owner: ---- Labels: Type-Bug Pri-2 OS-All Area-Misc New issue 17447 by [email protected]: Back button and History file do not work with JavaScript navigation http://code.google.com/p/chromium/issues/detail?id=17447
Chrome Version : 2.0.172.37 URLs (if applicable) : http://code.google.com/p/chromium/issues/list http://winserver.ndi.org/demo/PageA.htm Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Safari 4: OK Firefox 3.x: OK IE 7: OK IE 8: OK What steps will reproduce the problem? 1. Follow a link that sets the browser location through JavaScript (either document.location or window.location.href). 2. Click the "Back" browser button What is the expected result? Browser returns to the previous page. What happens instead? Previous page in not in the History list; browser returns to the page before, or Back is grayed-out if there is nothing previous. Please provide any additional information below. Attach a screenshot if possible. One web app I use relies heavily on <tr onClick="document.location='whatever.htm'">. I start at the logon page, then navigate to 4 or 5 new pages through onClick events. If I click the Back button (or look in the history), I go all the way back to the logon page because none of the onClick links registered in History. Second example: THIS SITE. Navigate from this issue to the main list. Click in the highlighted table row AWAY from any actual text (i.e. between columns). You will be taken to the issue detail page via a function that sets document.location. Now click the back button. You will not return to the list page but to the page before (e.g. THIS PAGE, if you follow these steps). Dynamic example: http://winserver.ndi.org/demo/PageA.htm -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
