Bug 14438 - Assigning to document.location in an onload handler should not add a back entry
Summary: Assigning to document.location in an onload handler should not add a back entry
Status: RESOLVED DUPLICATE of bug 42861
Alias: None
Product: WebKit
Classification: Unclassified
Component: History (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-27 14:51 PDT by Matt Perry
Modified: 2011-04-06 13:43 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***