RESOLVED FIXED 9148
Setting location.href is not registered in history
https://bugs.webkit.org/show_bug.cgi?id=9148
Summary Setting location.href is not registered in history
David Kilzer (:ddkilzer)
Reported 2006-05-28 08:41:15 PDT
Setting location.href to load a page does not cause that URL to be recorded in the history. When a link to the previously loaded page appears later, that link is rendered as unvisited rather than visited. In Firefox 1.5.0.3 on Mac OS X, a page loaded via location.href is recorded in history. In MSIE 6 on WinXP SP2, a page loaded via location.href is also recorded in history. This behavior occurs in Safari 2.0.3 (417.9.3) on Mac OS X 10.4.6 (8I127) as well as locally-built WebKit r14551.
Attachments
Test v1 (2.20 KB, patch)
2006-05-28 08:45 PDT, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 2006-05-28 08:45:55 PDT
Created attachment 8578 [details] Test v1 Test demonstrating the problem with setting location.href. It may be possible to simplify this test.
Brady Eidson
Comment 2 2007-05-23 17:42:21 PDT
I'm quite interested to know what the actual correct behavior is. I know that Safari 2.0 and ToT both act differently from FFX, which puts all 3 items in history, but do we know which is actually "correct"?
David Kilzer (:ddkilzer)
Comment 3 2007-05-23 20:43:17 PDT
(In reply to comment #2) > I'm quite interested to know what the actual correct behavior is. I know that > Safari 2.0 and ToT both act differently from FFX, which puts all 3 items in > history, but do we know which is actually "correct"? NOTE: I filed this bug because I noticed a difference in behavior between Safari/WebKit, Firefox and MSIE 6. I do not know what the correct behavior is.
Beth Dakin
Comment 4 2007-06-07 11:47:11 PDT
David Kilzer (:ddkilzer)
Comment 5 2007-07-08 14:58:05 PDT
This bug was not fixed by the fix for Bug 13400.
David Kilzer (:ddkilzer)
Comment 6 2007-07-17 07:48:26 PDT
David Kilzer (:ddkilzer)
Comment 7 2007-07-22 20:51:01 PDT
(In reply to comment #6) > May be fixed by: http://trac.webkit.org/projects/webkit/changeset/24353 This appears to be fixed now. (The test case doesn't work with DRT, but it works in Safari.)
Note You need to log in before you can comment on or make changes to this bug.