зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1680218 - [devtools] Remove supportsNodePicker trait. r=rcaliman.
The trait was introduced in Firefox 80, so it's safe to remove it now. Differential Revision: https://phabricator.services.mozilla.com/D98487
This commit is contained in:
Родитель
4ec3c507e6
Коммит
1aac59224c
|
@ -583,16 +583,8 @@ class WalkerFront extends FrontClassWithSpec(walkerSpec) {
|
||||||
if (this._isPicking) {
|
if (this._isPicking) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._isPicking = true;
|
this._isPicking = true;
|
||||||
|
|
||||||
// @backward-compat { version 80 } On older server, walker.pick doesn't exist.
|
|
||||||
if (!this.traits.supportsNodePicker) {
|
|
||||||
// parent is InspectorFront
|
|
||||||
return doFocus
|
|
||||||
? this.parentFront.highlighter.pickAndFocus()
|
|
||||||
: this.parentFront.highlighter.pick();
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.pick(doFocus);
|
return super.pick(doFocus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -603,14 +595,8 @@ class WalkerFront extends FrontClassWithSpec(walkerSpec) {
|
||||||
if (!this._isPicking) {
|
if (!this._isPicking) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._isPicking = false;
|
this._isPicking = false;
|
||||||
|
|
||||||
// @backward-compat { version 80 } On older server, walker.cancelPick doesn't exist.
|
|
||||||
if (!this.traits.supportsNodePicker) {
|
|
||||||
// parent is InspectorFront
|
|
||||||
return this.parentFront.highlighter.cancelPick();
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.cancelPick();
|
return super.cancelPick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,8 +321,6 @@ var WalkerActor = protocol.ActorClassWithSpec(walkerSpec, {
|
||||||
actor: this.actorID,
|
actor: this.actorID,
|
||||||
root: this.rootNode.form(),
|
root: this.rootNode.form(),
|
||||||
traits: {
|
traits: {
|
||||||
// @backward-compat { version 80 } Walker implements node picker
|
|
||||||
supportsNodePicker: true,
|
|
||||||
// @backward-compat { version 83 } Walker implements overflow debugging support
|
// @backward-compat { version 83 } Walker implements overflow debugging support
|
||||||
supportsOverflowDebugging2: true,
|
supportsOverflowDebugging2: true,
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче