Differentiate firefox-supported events from possibly user events in the inspector event tooltip
Categories
(DevTools :: Inspector, enhancement)
Tracking
(relnote-firefox 144+, firefox144 fixed)
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 3 open bugs)
Details
(Keywords: dev-doc-needed)
Attachments
(1 file, 2 external files)
|
62.60 KB,
image/png
|
Details |
The following test page highlights that we can't immediately spot that "wheel" is a functional DOM Event, whereas "mousewheel" isn't (bug 1529953):
data:text/html,<script>document.addEventListener("wheel", () => {});document.addEventListener("mousewheel", () => {})</script>
It would be nice to add some UI highlights in the inspector event tooltip to help easily spot non native DOM events,
which may be events that Firefox doesn't (yet) support, or may be user defined event.
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
This method helps differentiate DOM Events actually implemented by Gecko from:
- Custom events implemented by the page,
- DOM Events possibly implemented in other browsers, but not in Gecko.
Both will be flagged as "User defined" as it is hard to distinguish.
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/211254addd80
https://hg.mozilla.org/mozilla-central/rev/017df5cb42e0
Updated•1 year ago
|
Comment 5•1 year ago
|
||
That seems worth mentioning in the release notes for Firefox 144 at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/144 and the general ones.
[Why is this notable]: New feature making it easier to debug JS events.
[Affects Firefox for Android]: no
[Suggested wording]: The events tooltip in the Inspector now shows a badge besides custom events, making it easier to differenciate them from built-in events.
Description
•