Bug 1794367 - [devtools] Remove backward compatibility code for 105 r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D158937
This commit is contained in:
Hubert Boma Manilla 2022-10-10 15:29:38 +00:00
parent 07c72beec9
commit 21cb412b0d
3 changed files with 3 additions and 10 deletions

View file

@ -529,9 +529,7 @@ class ToolboxToolbar extends Component {
: null;
// Display the toolbar in the MBT and about:debugging MBT if we have server support for it.
// @backward-compat { version 105 } supportsSwitchingMode check can be removed when 105 is on release
const chromeDebugToolbar =
toolbox.commands.client.mainRoot.traits.supportsSwitchingMode &&
toolbox.commands.targetCommand.descriptorFront
.isBrowserProcessDescriptor &&
Services.prefs.getBoolPref("devtools.browsertoolbox.fission", false)

View file

@ -286,13 +286,10 @@ function nodeHasEntries(item) {
className === "WeakSet" ||
className === "Storage" ||
className === "URLSearchParams" ||
// @backward-compat { version 105 } Support for enumerate Headers entries was
// added in 105. When connecting to older server, we don't want to show the <entries>
// node for them. The extra check can be removed once 105 hits release.
(className === "Headers" && Array.isArray(value.preview?.entries)) ||
className === "Headers" ||
// @backward-compat { version 106 } Support for enumerate FormData entries was
// added in 105. When connecting to older server, we don't want to show the <entries>
// node for them. The extra check can be removed once 105 hits release.
// added in 106. When connecting to older server, we don't want to show the <entries>
// node for them. The extra check can be removed once 106 hits release.
(className === "FormData" && Array.isArray(value.preview?.entries))
);
}

View file

@ -129,8 +129,6 @@ exports.RootActor = protocol.ActorClassWithSpec(rootSpec, {
this.traits = {
networkMonitor: true,
resources: supportedResources,
// @backward-compat { version 105 } isSwitchingMode not supported by old servers
supportsSwitchingMode: true,
// @backward-compat { version 84 } Expose the pref value to the client.
// Services.prefs is undefined in xpcshell tests.
workerConsoleApiMessagesDispatchedToMainThread: Services.prefs