Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy

Differential Revision: https://phabricator.services.mozilla.com/D130844
This commit is contained in:
Julian Descottes 2021-11-16 14:34:25 +00:00
parent 59c1dc3789
commit 4e5f134653
2 changed files with 1 additions and 8 deletions

View File

@ -334,11 +334,7 @@ async function setSkipPausing(shouldSkip) {
}
async function setEventListenerBreakpoints(ids) {
// @backward-compat { version 94 } The `event-breakpoints` trait check is no longer needed, but
// keep the check for target watcher support to fallback for unsupported targets (e.g webextensions)
const hasWatcherSupport = commands.targetCommand.hasTargetWatcherSupport(
"event-breakpoints"
);
const hasWatcherSupport = commands.targetCommand.hasTargetWatcherSupport();
if (!hasWatcherSupport) {
return forEachThread(thread => thread.setActiveEventBreakpoints(ids));
}

View File

@ -238,9 +238,6 @@ exports.WatcherActor = protocol.ActorClassWithSpec(watcherSpec, {
[Resources.TYPES.SERVER_SENT_EVENT]: shouldEnableAllWatchers,
[Resources.TYPES.WEBSOCKET]: shouldEnableAllWatchers,
},
// @backward-compat { version 94 } Full support for event breakpoints via the watcher actor
"event-breakpoints": true,
},
};
},