Closed
Bug 237969
Opened 21 years ago
Closed 21 years ago
onclick="window.open(this.href); return false" will intermittently open the href in the new window _and_ the parent window
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 151142
People
(Reporter: simon, Assigned: bugzilla)
References
()
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Frustrating problem to nail down, as it is intermittent. I have observed it on
both Kottke.org, while using Basecamp (www.basecamphq.com) and Gallery (php
photo gallery available from gallery.menalto.com.) BasecampHQ differs in that
when I observed the problem it didn't have "return false" after open window.
Problem seems more likely to occur when the tab is new and has just loaded. A
second click is unlikely to replicate the problem.
Let me know if you require further information and I will attempt to help.
Reproducible: Sometimes
Steps to Reproduce:
1. Open site in new tab
2. Click link with javascript to open new window
Actual Results:
New page appears in both new window and parent window.
Expected Results:
Opened the new page in the new window and retained the current page in the
parent window.
Comment 1•21 years ago
|
||
When the href property of an a tag is empty, the page will reload regardless of
the return of an onclick event.
The testcase I've attached shows this. With "Mozilla/5.0 (Windows; U; Windows
NT 5.1; en-US; rv:1.7b) Gecko/20040410 Firefox/0.8 (scragz)", test case 3 fails
- the onclick doesn't cancel the action of reloading.
Comment 2•21 years ago
|
||
I am able to reproduce this for all four examples (double-click if necessary),
and I've often seen similar behaviour. I describe my experience in bug #243431.
Comment 3•21 years ago
|
||
I've experienced this problem with Lexis-Nexis (lexis-nexis.com/universe -- I
can provide a username / password to mozilla coders ONLY, for testing purposes
ONLY) for a while, back in the .7 days. I'm using .9RC and still get the
problem. Lexis-Nexis's search results page always experiences this bug.
Comment 4•21 years ago
|
||
None of these links reloads the page for me. I believe this is fixed.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9
Comment 5•21 years ago
|
||
Works for me too. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040619 Firefox/0.9.0+
Comment 6•21 years ago
|
||
Here is a semi-reduced testcase. You need to ctrl+click on the link to see it
load in the new tab and the current one.
Comment 7•21 years ago
|
||
The address in the URL field is non-existent.
Attachment 147625 [details] was viewed, tried and tested in bug 243431 by several people.
The Proposed testcase (attachment 151626 [details]) is not of type text/html.
This bug description and summary is almost identical to bug 243431.
(In reply to comment #6) Ctrl+click is a different issue which is addressed in
bug 151142.
People, please spend a bit more time to search for a duplicate and/or be a bit
more careful when submitting attachment.
*** This bug has been marked as a duplicate of 151142 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•