Closed Bug 1333901 Opened 9 years ago Closed 9 years ago

document.createEvent("ErrorEvent") should work

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: bzbarsky, Assigned: smaug)

References

Details

Attachments

(1 file)

Per https://dom.spec.whatwg.org/#dom-document-createevent it's in the table, right? We don't have a case for it in EventDispatcher::CreateEvent and have a comment about how new things should not be added there, but seems like either we should add it or push for a spec change or something.
Flags: needinfo?(bugs)
Well, supported in Edge and Chrome at least, so I don't think there is reason to fight against in this trivial case.
Assignee: nobody → bugs
Flags: needinfo?(bugs)
I use the same email for alert_emails as in other cases wpt has a test for this https://treeherder.mozilla.org/#/jobs?repo=try&revision=87a1828542e31fcd3aa83cefd007cfa330888006
Attachment #8830568 - Flags: review?(masayuki)
Attachment #8830568 - Flags: review?(masayuki) → review+
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fe6d35a774ed support document.createEvent(ErrorEvent), r=masayuki
seems this caused also https://treeherder.mozilla.org/logviewer.html#?job_id=72190702&repo=mozilla-inbound for some reason and so i had to backout the changes
Flags: needinfo?(bugs)
Backout by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b0a82bb74362 Backed out changeset fe6d35a774ed for causing hazard warnings after landing
Backout by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b14696671dcb Backed out changeset 0fb98449c43b need also backed out to due to inital patch-backout
Please note that all new data collection requires data review: https://wiki.mozilla.org/Firefox/Data_Collection
This was really just a modification to the existing collection of createEvent usage.
Flags: needinfo?(bugs)
Sign-off from data-review should be rather trivial in this case then. FWIW, this seems like it might be more useful to use one categorical histogram with the labels "dragevents", "errorevent", etc. That would show up like this: https://mzl.la/2jK2S5n
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: