[Webkit-unassigned] [Bug 20355] New: History doesn't work correctly after a redirect with window.location.replace()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 11 19:08:25 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20355

           Summary: History doesn't work correctly after a redirect with
                    window.location.replace()
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: History
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mathewsb at facebook.com


After a redirect by window.location.replace(), changes to the URI fragment
don't insert new history entries.  The problem continues until you change to a
new page.

For instance suppose you have these two files:

a.html:
<script>window.location.replace('b.html');</script>

b.html:
<a href="#asdf">Click this link to demonstrate the problem.</a>

If you load a.html, you will be redirected to b.html.  If you click on the
link, then the location bar is updated, but no history entry is added.

However, if you load b.html directly, then clicking on the link *does* insert a
history entry.

This happens for me on Safari 3.1.2, and on the WebKit nightly r35666.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list