Commit 2c43c377 authored by Farooq AR's avatar Farooq AR
Browse files

Bug 1607686 - Add beforeinput to Event Listener Breakpoints. r=loganfsmyth

Differential Revision: https://phabricator.services.mozilla.com/D63054

--HG--
extra : moz-landing-system : lando
parent fca0be7e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@

"use strict";

const Services = require("Services");

function generalEvent(groupID, eventType) {
  return {
    id: `event.${groupID}.${eventType}`,
@@ -157,11 +159,15 @@ const AVAILABLE_BREAKPOINTS = [
  {
    name: "Keyboard",
    items: [
      Services.prefs &&
      Services.prefs.getBoolPref("dom.input_events.beforeinput.enabled")
        ? generalEvent("keyboard", "beforeinput")
        : null,
      generalEvent("keyboard", "input"),
      generalEvent("keyboard", "keydown"),
      generalEvent("keyboard", "keyup"),
      generalEvent("keyboard", "keypress"),
      generalEvent("keyboard", "input"),
    ],
    ].filter(Boolean),
  },
  {
    name: "Load",