Open Bug 288908 Opened 19 years ago Updated 2 years ago

event sending from dialog to parent window is broken

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect

Tracking

()

UNCONFIRMED

People

(Reporter: surkov, Unassigned)

Details

Attachments

(2 files)

636 bytes, application/vnd.mozilla.xul+xml
Details
1.16 KB, application/vnd.mozilla.xul+xml
Details
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);
event.someprop="hello";
parentwnd.dispatchEvent(event);

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

Reproducible: Always

Steps to Reproduce:
Attached file dialog window
Attached file 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/
(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.
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.

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

Attachment

General

Created:
Updated:
Size: