diff --git a/devtools/client/inspector/inspector.js b/devtools/client/inspector/inspector.js index e62fef65c196..d9f6ca3d82c5 100644 --- a/devtools/client/inspector/inspector.js +++ b/devtools/client/inspector/inspector.js @@ -232,16 +232,6 @@ Inspector.prototype = { } }, - // Added in 53. - get canGetCssPath() { - return this._target.client.traits.getCssPath; - }, - - // Added in 56. - get canGetXPath() { - return this._target.client.traits.getXPath; - }, - get notificationBox() { if (!this._notificationBox) { this._notificationBox = this.toolbox.getNotificationBox(); @@ -1762,7 +1752,6 @@ Inspector.prototype = { accesskey: INSPECTOR_L10N.getStr("inspectorCopyCSSPath.accesskey"), disabled: !isSelectionElement, - hidden: !this.canGetCssPath, click: () => this.copyCssPath(), })); copySubmenu.append(new MenuItem({ @@ -1771,7 +1760,6 @@ Inspector.prototype = { accesskey: INSPECTOR_L10N.getStr("inspectorCopyXPath.accesskey"), disabled: !isSelectionElement, - hidden: !this.canGetXPath, click: () => this.copyXPath(), })); copySubmenu.append(new MenuItem({ diff --git a/devtools/server/actors/root.js b/devtools/server/actors/root.js index d0d78e2864b6..fd469076c6a0 100644 --- a/devtools/server/actors/root.js +++ b/devtools/server/actors/root.js @@ -128,10 +128,6 @@ RootActor.prototype = { // Whether the server can return wasm binary source wasmBinarySource: true, bulk: true, - // Whether the dom node actor implements the getCssPath method. Added in 53. - getCssPath: true, - // Whether the dom node actor implements the getXPath method. Added in 56. - getXPath: true, // Whether the director scripts are supported directorScripts: true, // Whether the debugger server supports