Open Bug 1908612 Opened 2 months ago Updated 2 months ago

Display all keyboard and mouse/pointer events in the Debugger Trace Sidebar

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

In Bug 1885054, we'll only display a few selected events (mouse* and key*)
Without going all in and show every events, we could display all the events that we list in the event listener breakpoint panel under the Keyboard , Mouse and Pointer categories.
Those categories are defined in https://searchfox.org/mozilla-central/rev/91f6127b6f591da4037821791c345147d9a575da/devtools/server/actors/utils/event-breakpoints.js#198-214,254-286

{
  name: "Keyboard",
  items: [
    generalEvent("keyboard", "beforeinput"),
    generalEvent("keyboard", "input"),
    generalEvent("keyboard", "textInput", () =>
      // Services.prefs isn't available on worker targets
      Services.prefs?.getBoolPref("dom.events.textevent.enabled")
    ),
    generalEvent("keyboard", "keydown"),
    generalEvent("keyboard", "keyup"),
    generalEvent("keyboard", "keypress"),
    generalEvent("keyboard", "compositionstart"),
    generalEvent("keyboard", "compositionupdate"),
    generalEvent("keyboard", "compositionend"),
  ].filter(Boolean),
},
...
{
  name: "Mouse",
  items: [
    generalEvent("mouse", "auxclick"),
    generalEvent("mouse", "click"),
    generalEvent("mouse", "dblclick"),
    generalEvent("mouse", "mousedown"),
    generalEvent("mouse", "mouseup"),
    generalEvent("mouse", "mouseover"),
    generalEvent("mouse", "mousemove"),
    generalEvent("mouse", "mouseout"),
    generalEvent("mouse", "mouseenter"),
    generalEvent("mouse", "mouseleave"),
    generalEvent("mouse", "mousewheel"),
    generalEvent("mouse", "wheel"),
    generalEvent("mouse", "contextmenu"),
  ],
},
{
  name: "Pointer",
  items: [
    generalEvent("pointer", "pointerover"),
    generalEvent("pointer", "pointerout"),
    generalEvent("pointer", "pointerenter"),
    generalEvent("pointer", "pointerleave"),
    generalEvent("pointer", "pointerdown"),
    generalEvent("pointer", "pointerup"),
    generalEvent("pointer", "pointermove"),
    generalEvent("pointer", "pointercancel"),
    generalEvent("pointer", "gotpointercapture"),
    generalEvent("pointer", "lostpointercapture"),
  ],
},
Blocks: 1908613
You need to log in before you can comment on or make changes to this bug.