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

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Farooq AR 2020-02-17 08:02:08 +00:00
Родитель 0439db3a39
Коммит e26ebfa04a
1 изменённых файлов: 7 добавлений и 2 удалений

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

@ -4,6 +4,8 @@
"use strict";
const Services = require("Services");
function generalEvent(groupID, eventType) {
return {
id: `event.${groupID}.${eventType}`,
@ -157,11 +159,14 @@ const AVAILABLE_BREAKPOINTS = [
{
name: "Keyboard",
items: [
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",