Closed Bug 1157411 Opened 9 years ago Closed 6 years ago

[Add-ons] NS_ERROR_FAILURE creating CustomEvents

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: justindarc, Unassigned)

References

Details

Attachments

(1 file)

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.
Fabrice: Please take a look at this. It is relatively urgent.
Blocks: 1156919
Flags: needinfo?(fabrice)
Flags: needinfo?(fabrice)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: