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

RESOLVED INACTIVE

Status

()

Core
DOM: Events
RESOLVED INACTIVE
6 years ago
22 hours ago

People

(Reporter: philikon, Unassigned)

Tracking

Other Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

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?

Comment 2

6 years ago
Events dispatched by chrome JS are trusted.

Comment 3

22 hours ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 22 hours ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.