mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
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:
parent
59c1dc3789
commit
4e5f134653
@ -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));
|
||||
}
|
||||
|
@ -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,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user