event sending from dialog to parent window is broken




14 years ago
10 years ago


(Reporter: surkov, Unassigned)


Windows 2000

Firefox Tracking Flags

(Not tracked)



(2 attachments)

636 bytes, application/vnd.mozilla.xul+xml
1.16 KB, application/vnd.mozilla.xul+xml


14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; ru-RU; rv:1.7.5) Gecko/20041108 Firefox/1.0 (ax)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217

I fire event from dialog to parent window. I guess when parent window handles
event then handled event object differs from sended event object.

I create event (dialog window):

var event=document.createEvent("Events");
event.initEvents("someevent", true, false);

I handle event (parent window):
event.someprop is undefined

Reproducible: Always

Steps to Reproduce:

Comment 1

14 years ago
Created attachment 179539 [details]
dialog window

Comment 2

14 years ago
Created attachment 179540 [details]
parent window

run it from chrome protocol
The native event object is probably rewrapped when it gets into script in the
other window...
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/

Comment 5

14 years ago
(In reply to comment #3)
> The native event object is probably rewrapped when it gets into script in the
> other window...

Is it right when it rewrapped?
Yes.  I believe we rewrap events for security reasons.

Comment 7

14 years ago
Is there workaround when I want to pass some information with event?

(In reply to comment #6)
> Yes.  I believe we rewrap events for security reasons.

Not that I'm aware of, for the workaround.
Assignee: jag → nobody
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.