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

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Farooq AR 2020-02-19 07:41:03 +00:00
Родитель fca0be7e2c
Коммит 2c43c37792
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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",