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)

defect

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
Browser, not engine. Reassigning to DOM Level 0 for further triage -
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
i'm making a testcase for this bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: makingtest
Attached file testcase (zipped)
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: makingtesttestcase
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
Event handling/handler problem, reassigning to Tom.
Assignee: jst → joki
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.
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
Keywords: dom0
Moving out one milestone. Joki's plate is full.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
This is fixed now. The testcase works fine in M0.9. It seems to have been fixed by the patch attached to bug 65777 (as rpotts reported in bug 68955).
Moving lower priority bugs out of .9.2 milestone.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
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
->0.9.5
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Moving to 0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
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.

Attachment

General

Creator:
Created:
Updated:
Size: