Closed
Bug 57103
Opened 25 years ago
Closed 24 years ago
<a onClick="self.location='foo'" href="bar"> in a frame: self.location ignored, even when href has a target
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WORKSFORME
mozilla0.9.6
People
(Reporter: robinwylie, Assigned: joki)
References
()
Details
(Keywords: dom0, testcase)
Attachments
(2 files)
This Code will onl change the target window, but not the self window.
It has not worked for all the buidls I've tried: m15-m18
works in netscape 4.73 and IE5
this is a snippet of the offending code:
<A HREF="../main/computers.html" onClick="window.self.location='linkcomp.html'"
Target="main">
It is repeatable on the website
www.wyliecomputers.com
and clicking on the menu selections support or computers.
Thanks You
Robin Wylie
Comment 1•25 years ago
|
||
Browser, not engine. Reassigning to DOM Level 0 for further triage -
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Comment 2•25 years ago
|
||
i'm making a testcase for this bug.
Comment 3•25 years ago
|
||
Comment 4•25 years ago
|
||
Comment 5•25 years ago
|
||
Updating summary, keywords.
I noticed a javascript error in navigator.js that happens when I take away the
target (so self.location= and href= are fighting for who gets to fill the
frame). I don't know whether this is the same bug or a separate bug.
Keywords: makingtest → testcase
OS: Linux → All
Hardware: PC → All
Summary: onClick="window.self.location='*'" does not work → <a onClick="self.location='foo'" href="bar"> in a frame: self.location ignored, even when href has a target
Comment 7•25 years ago
|
||
I've ran into this problem as well and found an interesting case on some
internal company sites.
On Windows NT 4 (build 2000112704) if you _right_ click on the link to bring up
the context menu, the onClick address is honored and the href address is ignored.
If you _left_ click on the link the href address is honored and the onClick
address is ignored.
This holds true for the latest attached testcase.
| Assignee | ||
Comment 8•25 years ago
|
||
Hopefully just a botched logic issue. If its a timing issue its going to be
tough to fix.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Moving out one milestone. Joki's plate is full.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Comment 10•25 years ago
|
||
| Assignee | ||
Comment 11•25 years ago
|
||
Moving lower priority bugs out of .9.2 milestone.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Comment 12•25 years ago
|
||
Doesn't look like this is getting fixed before the freeze tomorrow night.
Pushing out a milestone. Please correct if I'm mistaken.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Comment 15•24 years ago
|
||
Marking WORKSFORME based on Wolfgang's comments of 2001-06-16 and because it
works for bz and I in recent nightlies. Please reopen if the bug reappears.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•