зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1494162 - Part 55: Remove traits for getCssPath and getXPath. r=rcaliman
This commit is contained in:
Родитель
c07636d479
Коммит
498ddbcb2a
|
@ -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({
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче