Bug 14438
Summary: | Assigning to document.location in an onload handler should not add a back entry | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matt Perry <mpComplete> |
Component: | History | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | alex, grahamperrin, mihaip |
Priority: | P2 | ||
Version: | 523.x (Safari 3) | ||
Hardware: | All | ||
OS: | All |
Matt Perry
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).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alex Plank
I filed bug 15786 which may or may not be related to this bug.
Mihai Parparita
*** This bug has been marked as a duplicate of bug 42861 ***