summaryrefslogtreecommitdiffstats
path: root/devtools/client/fronts
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/fronts')
-rw-r--r--devtools/client/fronts/css-properties.js2
-rw-r--r--devtools/client/fronts/node.js2
-rw-r--r--devtools/client/fronts/object.js13
-rw-r--r--devtools/client/fronts/storage.js2
-rw-r--r--devtools/client/fronts/walker.js12
-rw-r--r--devtools/client/fronts/watcher.js2
6 files changed, 23 insertions, 10 deletions
diff --git a/devtools/client/fronts/css-properties.js b/devtools/client/fronts/css-properties.js
index 93e9d52900..47bfe3e411 100644
--- a/devtools/client/fronts/css-properties.js
+++ b/devtools/client/fronts/css-properties.js
@@ -131,7 +131,7 @@ CssProperties.prototype = {
*
* @return {Array} An array of strings.
*/
- getNames(property) {
+ getNames() {
return Object.keys(this.properties);
},
diff --git a/devtools/client/fronts/node.js b/devtools/client/fronts/node.js
index 8df63f2c1b..d56f2d93f1 100644
--- a/devtools/client/fronts/node.js
+++ b/devtools/client/fronts/node.js
@@ -585,7 +585,7 @@ class NodeFront extends FrontClassWithSpec(nodeSpec) {
* and is only intended as a stopgap during the transition to the remote
* protocol. If you depend on this you're likely to break soon.
*/
- rawNode(rawNode) {
+ rawNode() {
if (!this.isLocalToBeDeprecated()) {
console.warn("Tried to use rawNode on a remote connection.");
return null;
diff --git a/devtools/client/fronts/object.js b/devtools/client/fronts/object.js
index 53752a778a..c5ce91329c 100644
--- a/devtools/client/fronts/object.js
+++ b/devtools/client/fronts/object.js
@@ -14,17 +14,18 @@ const {
} = require("resource://devtools/client/fronts/string.js");
const SUPPORT_ENUM_ENTRIES_SET = new Set([
+ "CustomStateSet",
+ "FormData",
"Headers",
+ "HighlightRegistry",
"Map",
- "WeakMap",
+ "MIDIInputMap",
+ "MIDIOutputMap",
"Set",
- "WeakSet",
"Storage",
"URLSearchParams",
- "FormData",
- "MIDIInputMap",
- "MIDIOutputMap",
- "HighlightRegistry",
+ "WeakMap",
+ "WeakSet",
]);
/**
diff --git a/devtools/client/fronts/storage.js b/devtools/client/fronts/storage.js
index 7637471126..a6ccd82514 100644
--- a/devtools/client/fronts/storage.js
+++ b/devtools/client/fronts/storage.js
@@ -26,7 +26,7 @@ for (const childSpec of Object.values(childSpecs)) {
}
// Update the storage fronts `hosts` properties with potential new hosts and remove the deleted ones
- async _onStoreUpdate({ changed, added, deleted }) {
+ async _onStoreUpdate({ added, deleted }) {
// `resourceKey` comes from the storage resource and is set by the legacy listener
// -or- the resource transformer.
const { resourceKey } = this;
diff --git a/devtools/client/fronts/walker.js b/devtools/client/fronts/walker.js
index 5feae2a343..5cffef612d 100644
--- a/devtools/client/fronts/walker.js
+++ b/devtools/client/fronts/walker.js
@@ -148,6 +148,18 @@ class WalkerFront extends FrontClassWithSpec(walkerSpec) {
return response.node;
}
+ async getIdrefNode(queryNode, id) {
+ // @backward-compat { version 125 } getIdrefNode was added in 125, so the whole if
+ // block below can be removed once 125 hits release.
+ if (!this.traits.hasGetIdrefNode) {
+ const doc = await this.document(queryNode);
+ return this.querySelector(doc, "#" + id);
+ }
+
+ const response = await super.getIdrefNode(queryNode, id);
+ return response.node;
+ }
+
async getNodeActorFromWindowID(windowID) {
const response = await super.getNodeActorFromWindowID(windowID);
return response ? response.node : null;
diff --git a/devtools/client/fronts/watcher.js b/devtools/client/fronts/watcher.js
index 1a7499561a..f78e063992 100644
--- a/devtools/client/fronts/watcher.js
+++ b/devtools/client/fronts/watcher.js
@@ -67,7 +67,7 @@ class WatcherFront extends FrontClassWithSpec(watcherSpec) {
// the watcher may notify us about the top level target destruction a bit late.
// The descriptor (`this.parentFront`) already switched to the new target.
// Missing `target-destroyed` isn't critical when target switching is off
- // as `TargetCommand.switchToTarget` will end calling `TargetCommandonTargetDestroyed` for all
+ // as `TargetCommand.switchToTarget` will end calling `TargetCommand.onTargetDestroyed` for all
// existing targets.
// https://searchfox.org/mozilla-central/rev/af8e5d37fd56be90ccddae2203e7b875d3f3ae87/devtools/shared/commands/target/target-command.js#166-173
if (front) {