Open Bug 759579 Opened 12 years ago Updated 2 years ago

Allow chrome JS object to create trusted events and/or implement custom event types

Categories

(Core :: DOM: Events, defect, P5)

Other Branch
defect

Tracking

()

People

(Reporter: philikon, Unassigned)

Details

+++ This bug was initially created as a clone of Bug #731746 +++

Bug 731746 will get us proper EventTarget semantics in JS, but often we need more than that: we need to be able to declare the events that we dispatch as trusted, and sometimes we also need to define custom event types.
Those are two separate things.

Declaring an event that you dispatch as trusted is just a matter of an API on Event that's only exposed to chrome.

As far as implementing custom event types, that's... hard.  We don't really have a sane way of making this work right now.  I guess we should think about one, but I would like to understand what your exact requirements are here.  Do you need to create a completely custom implementation in JS?  Or do you just need to create an object and set some fields on it?
Events dispatched by chrome JS are trusted.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.