Closed Bug 49165 Opened 24 years ago Closed 23 years ago

Events aren't generated in a new window

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

x86
All
defect

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: kazhik, Assigned: joki)

Details

(Whiteboard: [rtm-])

Attachments

(1 file)

BODY:onLoad,DIV:onMouseOver,INPUT:onClick events
are not generated in a new window which Javascript opened.

I'll attach a test case.

(1) Small window appears. At the same time An alert
which says "(BODY)onLoad: Hi OK" should appear.

(2) "(INPUT)onClick: Hi OK" should appear when click the
"click" button on small window.

(3) "(DIV)onMouseOver: Hi OK" should appear when put a
mouse pointer on "mouse here".
Attached file Test Case
I confirmed this problem on Win98 2000081508.

This is originally reported on Japanese Bugzilla.
http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=209
Confirming on NT4 build 2000081508. Changing status from unconfirmed to new.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Browser, not engine - reassigning to Event Handling for further triage or 
acceptance
Assignee: rogerl → joki
Component: Javascript Engine → Event Handling
QA Contact: pschwartau → janc
Chris, I think this is a dup of bug 31426 that is on your list.
Assignee: joki → saari
->joki, per saari.  Works on Win98, except for mouseover, but nothing works on 
Linux
Assignee: saari → joki
I've tried this and verfied the bug exists on WinNT for me.  It's got to be a 
problem with document.write'n event handlers.  I'll keep looking into it.
Status: NEW → ASSIGNED
Updating QA Contact.
QA Contact: janc → lorca
Nominating for rtm. Quite a few websites (like Netcenter;) pop up new windows 
which can have event handlers. NN 4.7 also fires the onload handler (added 4xp 
keyword even though mouseover does not work in NN4.x).
Keywords: 4xp, rtm
Marking [rtm need info].
Whiteboard: [rtm need info]
I haven't worked on this bug in a couple of weeks but my current testing is 
showing the onmouseover and the onclick both working.  The only event not 
working is the onload.  This is on WinNT.  Is this consistent with what others 
are seeing?  And can anyone take a look and see what its doing on Mac or Linux 
right now?
Alright, I'm still assuming here that all the event handlers except the onload 
handler are working now.  I still need to know if that's not true elsewhere.  
But as far as the onload goes the bottom line is this:

onload events DO work in new windows which load a file.
document.written onload handlers DO work.
load events are not fired in a new window if a file is not loaded.

I talked a vidur about this briefly and he thinks there might be a bit of work 
in this.  I suggest we ship without as long as the other bits of this bug are 
indeed working.
Marking rtm- and futuring.  If other people get different testing results than
joki did, please comment on this bug and renominate for rtm.

Thanks.
Whiteboard: [rtm need info] → [rtm-]
Target Milestone: --- → Future
This is not limited to 'popups' and not even new windows.
1) Some whole Applications actually live in new windows.
   If events are broken in them then the whole applications are broken.
2)It appears to be a more fundamental issue that is not limited to new windows.

Frames are affected as well. Please see

http://bugzilla.mozilla.org/show_bug.cgi?id=59164
http://bugzilla.mozilla.org/show_bug.cgi?id=57636
http://bugzilla.mozilla.org/show_bug.cgi?id=35253
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
QA contact updated
QA Contact: gerardok → madhur
onLoad, onClick and onMouseOver are working fine now.

Build: 2001070904/Win2k
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
OS: other → All
Resolution: --- → WORKSFORME
verified on build 2001-07-24-06-trunk
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: