Closed Bug 1977628 Opened 1 year ago Closed 1 year ago

Differentiate firefox-supported events from possibly user events in the inspector event tooltip

Categories

(DevTools :: Inspector, enhancement)

enhancement

Tracking

(relnote-firefox 144+, firefox144 fixed)

RESOLVED FIXED
144 Branch
Tracking Status
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)

Attached image inspector event tooltip —

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: nobody → poirot.alex
Attachment #9501004 - Attachment description: WIP: Bug 1977628 - [devtools] Differentiate DOM Events supported by Gecko from non supported one, or possibly user-defined DOM Event names. → Bug 1977628 - [devtools] Differentiate DOM Events supported by Gecko from unsupported, or, possibly user-defined DOM Event names. r=#devtools
Status: NEW → ASSIGNED

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.

Blocks: 1980978
Pushed by apoirot@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/90e7252b7c8d https://hg.mozilla.org/integration/autoland/rev/211254addd80 Expose a JS API to identify DOM Events supported by Gecko. r=dom-core,smaug,devtools-reviewers,nchevobbe https://github.com/mozilla-firefox/firefox/commit/e43a1f1d163b https://hg.mozilla.org/integration/autoland/rev/017df5cb42e0 [devtools] Differentiate DOM Events supported by Gecko from unsupported, or, possibly user-defined DOM Event names. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-triage-done-c145/b144]

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.

relnote-firefox: --- → ?
Keywords: dev-doc-needed

Added to the Fx144 release notes

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: