forked from mirrors/gecko-dev
Bug 1794367 - [devtools] Remove backward compatibility code for 105 r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158937
This commit is contained in:
parent
07c72beec9
commit
21cb412b0d
3 changed files with 3 additions and 10 deletions
|
|
@ -529,9 +529,7 @@ class ToolboxToolbar extends Component {
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
// Display the toolbar in the MBT and about:debugging MBT if we have server support for it.
|
// 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 =
|
const chromeDebugToolbar =
|
||||||
toolbox.commands.client.mainRoot.traits.supportsSwitchingMode &&
|
|
||||||
toolbox.commands.targetCommand.descriptorFront
|
toolbox.commands.targetCommand.descriptorFront
|
||||||
.isBrowserProcessDescriptor &&
|
.isBrowserProcessDescriptor &&
|
||||||
Services.prefs.getBoolPref("devtools.browsertoolbox.fission", false)
|
Services.prefs.getBoolPref("devtools.browsertoolbox.fission", false)
|
||||||
|
|
|
||||||
|
|
@ -286,13 +286,10 @@ function nodeHasEntries(item) {
|
||||||
className === "WeakSet" ||
|
className === "WeakSet" ||
|
||||||
className === "Storage" ||
|
className === "Storage" ||
|
||||||
className === "URLSearchParams" ||
|
className === "URLSearchParams" ||
|
||||||
// @backward-compat { version 105 } Support for enumerate Headers entries was
|
className === "Headers" ||
|
||||||
// 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)) ||
|
|
||||||
// @backward-compat { version 106 } Support for enumerate FormData entries was
|
// @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>
|
// 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 105 hits release.
|
// node for them. The extra check can be removed once 106 hits release.
|
||||||
(className === "FormData" && Array.isArray(value.preview?.entries))
|
(className === "FormData" && Array.isArray(value.preview?.entries))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -129,8 +129,6 @@ exports.RootActor = protocol.ActorClassWithSpec(rootSpec, {
|
||||||
this.traits = {
|
this.traits = {
|
||||||
networkMonitor: true,
|
networkMonitor: true,
|
||||||
resources: supportedResources,
|
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.
|
// @backward-compat { version 84 } Expose the pref value to the client.
|
||||||
// Services.prefs is undefined in xpcshell tests.
|
// Services.prefs is undefined in xpcshell tests.
|
||||||
workerConsoleApiMessagesDispatchedToMainThread: Services.prefs
|
workerConsoleApiMessagesDispatchedToMainThread: Services.prefs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue