Steps to reproduce ------------------ 1. Load URL: "http://testsuite.nokia-boston.com/content/esmp_Sec9/objHistory/go_n1.html" 2. Tap on Link "Next" till the "Page 8" 3. Tap on "Go to page-5" in page 8 Expected Outcome ---------------- Page 5 should be loaded Actual Outcome -------------- Page 6 is loaded Note: ----- * Mozilla works as expected. * Retested using below mentioned test environments and the error is REPRODUCIBLE: Symbian: Latest Release QtTestBrowser: Webkit 2.1 Linux: Ubuntu 10.04 Lucid Lynx, Qt v.4.7.0, Webkit -2.1 (Trunk:-73634) Safari: Version: 5.0.3 (7533.19.4)
Nokia Internal Bugzilla ID: http://bugs.nokia-boston.com/bugzilla/show_bug.cgi?id=1051
Similar/Related existing webkit bugzilla error id: https://bugs.webkit.org/show_bug.cgi?id=29972.
I could reproduce this in Safari 5.0.3 on second attempt.
I don't think this belongs to HTML Editing component.
52372 Maj P3 All webkit-unassigned@lists.web... NEW history.go(-3) goes to a wrong page I think this is a problem with the test case. The <a> on page 8th page (go_n8.html) has an href and an onClick handler. The link is handled after the onClick event. It pushes another entry onto the stack, "go_n8.html#" which then causes the go(-3) to be off by 1 and go back to the 6th page instead of the 5th. http://testsuite.nokia-boston.com/content/esmp_Sec9/objHistory/go_n8.html# function fMain(){ history.go(-3); } <p> <a href="#" onClick="fMain()">Go to Page-5</a> </p> If I change the test case make the onclick event return false, the elements default action (loading the href) is not executed, and everything works as expected. <p> <a href="#" onClick="fMain(); return false;">Go to Page-5</a> </p> I think this should be ignored.
Marking invalid based on Comment #5. Please reopen if necessary.