[Add-ons] NS_ERROR_FAILURE creating CustomEvents

NEW
Unassigned

Status

Firefox OS
General
3 years ago
a year ago

People

(Reporter: justindarc, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8596122 [details]
addon-custom-events.zip

Calling the `CustomEvent` constructor with the second argument from within an add-on produces an NS_ERROR_FAILURE error. This does not happen when you don't pass the second argument.

Working:
```
var e = new CustomEvent('foo');
```

Broken:
```
var e = new CustomEvent('foo', { detail: { bar: 'baz' } });
```

Tested on latest Cypress build. See attached add-on to reproduce.
(Reporter)

Comment 1

3 years ago
Fabrice: Please take a look at this. It is relatively urgent.
Blocks: 1156919
Flags: needinfo?(fabrice)
Flags: needinfo?(fabrice)
You need to log in before you can comment on or make changes to this bug.