Javascript document.location.replace with target="_blank" does not enable Back button for subsequent visited page

RESOLVED WORKSFORME

Status

()

Core
Document Navigation
RESOLVED WORKSFORME
14 years ago
10 years ago

People

(Reporter: Bugzilla, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

If you click on a link whose HREF includes
javascript:void(document.location.replace('URL')) and whose TARGET is "_blank",
the page will open properly in a new window (or tab, if your browser is
configured as such.)  If, however, you either click a link from the page or
enter another URL in the address bar, the Back button, Alt-Left Arrow, and
Backspace do nothin or remain disabled.  For all subsequent pages, the
navigation functions normally.

Reproducible: Always
Steps to Reproduce:
1. Create an HTML file containing the following link:

<a href="javascript:void(document.location.replace('http://www.mozilla.org'))"
target="_blank">mozilla.org</a>

2. Click on the link to open it in a new window.

3. In that window, click on any other link or enter a new URL into the address
bar.  The Back button remains disabled, preventing you from returning to
mozilla.org.

Comment 1

14 years ago
Added the reporter's testcase.
WFM LInux 2004042807
Yep, worksforme too with a current build.  Marking so, but please reopen if this
is still an issue with current builds....
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME

Updated

10 years ago
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
You need to log in before you can comment on or make changes to this bug.