Bug 14438

Summary: Assigning to document.location in an onload handler should not add a back entry
Product: WebKit Reporter: Matt Perry <mpComplete>
Component: HistoryAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: alex, grahamperrin, mihaip
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   

Description Matt Perry 2007-06-27 14:51:22 PDT
If you have an onload handler that directly sets document.location, it should be treated as a client redirect and not get added to the back/forward list.  This is how Firefox behaves.

Incidentally, Firefox DOES add an entry if the onload handler does setTimeout('document.location = bla', 0).

My patch to bug 13400 breaks this (while fixing other document.location related behavior).
Comment 1 Alex Plank 2007-11-02 05:59:42 PDT
I filed bug 15786 which may or may not be related to this bug. 
Comment 2 Mihai Parparita 2011-04-06 13:43:12 PDT

*** This bug has been marked as a duplicate of bug 42861 ***