diff options
Diffstat (limited to 'devtools/client/storage')
9 files changed, 17 insertions, 17 deletions
diff --git a/devtools/client/storage/VariablesView.sys.mjs b/devtools/client/storage/VariablesView.sys.mjs index 4cd03edb18..96fe4f8da4 100644 --- a/devtools/client/storage/VariablesView.sys.mjs +++ b/devtools/client/storage/VariablesView.sys.mjs @@ -2596,10 +2596,8 @@ Variable.prototype = extend(Scope.prototype, { * * @param string aName * The variable's name. - * @param object aDescriptor - * The variable's descriptor. */ - _init(aName, aDescriptor) { + _init(aName) { this._idString = generateId((this._nameString = aName)); this._displayScope({ value: aName, targetClassName: this.targetClassName }); this._displayVariable(); @@ -3699,12 +3697,12 @@ VariablesView.stringifiers.byType = { return null; }, - symbol(aGrip, aOptions) { + symbol(aGrip) { const name = aGrip.name || ""; return "Symbol(" + name + ")"; }, - mapEntry(aGrip, { concise }) { + mapEntry(aGrip) { const { preview: { key, value }, } = aGrip; @@ -4416,13 +4414,13 @@ function EditableNameAndValue(aVariable, aOptions) { EditableNameAndValue.create = Editable.create; EditableNameAndValue.prototype = extend(EditableName.prototype, { - _reset(e) { + _reset() { // Hide the Variable or Property if the user presses escape. this._variable.remove(); this.deactivate(); }, - _next(e) { + _next() { // Override _next so as to set both key and value at the same time. const key = this._input.value; this.label.setAttribute("value", key); diff --git a/devtools/client/storage/test/browser_storage_cookies_sort.js b/devtools/client/storage/test/browser_storage_cookies_sort.js index 2b4316af53..7ed0feb0ad 100644 --- a/devtools/client/storage/test/browser_storage_cookies_sort.js +++ b/devtools/client/storage/test/browser_storage_cookies_sort.js @@ -53,7 +53,7 @@ function checkCells(expected) { const cells = [ ...gPanelWindow.document.querySelectorAll("#name .table-widget-cell"), ]; - cells.forEach(function (cell, i, arr) { + cells.forEach(function (cell, i) { // We use startsWith in order to avoid asserting the relative order of // "session" cookies when sorting on the "expires" column. ok( diff --git a/devtools/client/storage/test/browser_storage_indexeddb_hide_internal_dbs.js b/devtools/client/storage/test/browser_storage_indexeddb_hide_internal_dbs.js index 35906256b1..fab834ed52 100644 --- a/devtools/client/storage/test/browser_storage_indexeddb_hide_internal_dbs.js +++ b/devtools/client/storage/test/browser_storage_indexeddb_hide_internal_dbs.js @@ -35,6 +35,8 @@ add_task(async function () { const browserToolboxDoc = gToolbox.getCurrentPanel().panelWindow.document; const browserToolboxHosts = getDBHostsInTree(browserToolboxDoc); + // In the spawn task, we don't have access to Assert: + // eslint-disable-next-line mozilla/no-comparison-or-assignment-inside-ok ok(browserToolboxHosts.length > 1, "There are more than 1 indexedDB hosts"); ok( browserToolboxHosts.includes("about:devtools-toolbox"), diff --git a/devtools/client/storage/test/storage-empty-objectstores.html b/devtools/client/storage/test/storage-empty-objectstores.html index 4479fc0972..fc82d2f452 100644 --- a/devtools/client/storage/test/storage-empty-objectstores.html +++ b/devtools/client/storage/test/storage-empty-objectstores.html @@ -10,7 +10,7 @@ window.setup = async function () { let request = indexedDB.open("idb1", 1); const db = await new Promise((resolve, reject) => { - request.onerror = e => reject(Error("error opening db connection")); + request.onerror = () => reject(Error("error opening db connection")); request.onupgradeneeded = event => { const _db = event.target.result; const store1 = _db.createObjectStore("obj1", { keyPath: "id" }); @@ -38,7 +38,7 @@ window.setup = async function () { request = indexedDB.open("idb2", 1); const db2 = await new Promise((resolve, reject) => { - request.onerror = e => reject(Error("error opening db2 connection")); + request.onerror = () => reject(Error("error opening db2 connection")); request.onupgradeneeded = event => resolve(event.target.result); }); diff --git a/devtools/client/storage/test/storage-idb-delete-blocked.html b/devtools/client/storage/test/storage-idb-delete-blocked.html index 7c7b597421..bc61f5fe8d 100644 --- a/devtools/client/storage/test/storage-idb-delete-blocked.html +++ b/devtools/client/storage/test/storage-idb-delete-blocked.html @@ -14,7 +14,7 @@ window.setup = async function () { const request = indexedDB.open("idb", 1); request.onsuccess = e => resolve(e.target.result); - request.onerror = e => reject(new Error("error opening db connection")); + request.onerror = () => reject(new Error("error opening db connection")); }); dump("opened indexedDB\n"); @@ -29,7 +29,7 @@ window.deleteDb = async function () { const request = indexedDB.deleteDatabase("idb"); request.onsuccess = resolve; - request.onerror = e => reject(new Error("error deleting db")); + request.onerror = () => reject(new Error("error deleting db")); }); }; diff --git a/devtools/client/storage/test/storage-indexeddb-iframe.html b/devtools/client/storage/test/storage-indexeddb-iframe.html index 8cf0071bd0..4a76c85415 100644 --- a/devtools/client/storage/test/storage-indexeddb-iframe.html +++ b/devtools/client/storage/test/storage-indexeddb-iframe.html @@ -17,7 +17,7 @@ const DB_NAME = "db"; async function setup() { // eslint-disable-line no-unused-vars await new Promise((resolve, reject) => { const request = indexedDB.open(DB_NAME, 1); - request.onerror = event => reject(Error("Error opening DB")); + request.onerror = () => reject(Error("Error opening DB")); request.onupgradeneeded = event => { const db = event.target.result; const store = db.createObjectStore("store", { keyPath: "key" }); diff --git a/devtools/client/storage/test/storage-indexeddb-simple-alt.html b/devtools/client/storage/test/storage-indexeddb-simple-alt.html index 0c5e56f795..10a7d087bf 100644 --- a/devtools/client/storage/test/storage-indexeddb-simple-alt.html +++ b/devtools/client/storage/test/storage-indexeddb-simple-alt.html @@ -16,7 +16,7 @@ const DB_NAME = "db-alt"; async function setup() { // eslint-disable-line no-unused-vars await new Promise((resolve, reject) => { const request = indexedDB.open(DB_NAME, 1); - request.onerror = event => reject(Error("Error opening DB")); + request.onerror = () => reject(Error("Error opening DB")); request.onupgradeneeded = event => { const db = event.target.result; const store = db.createObjectStore("store", { keyPath: "key" }); diff --git a/devtools/client/storage/test/storage-indexeddb-simple.html b/devtools/client/storage/test/storage-indexeddb-simple.html index 9839240646..a670392fc1 100644 --- a/devtools/client/storage/test/storage-indexeddb-simple.html +++ b/devtools/client/storage/test/storage-indexeddb-simple.html @@ -16,7 +16,7 @@ const DB_NAME = "db"; async function setup() { // eslint-disable-line no-unused-vars await new Promise((resolve, reject) => { const request = indexedDB.open(DB_NAME, 1); - request.onerror = event => reject(Error("Error opening DB")); + request.onerror = () => reject(Error("Error opening DB")); request.onupgradeneeded = event => { const db = event.target.result; const store = db.createObjectStore("store", { keyPath: "key" }); diff --git a/devtools/client/storage/ui.js b/devtools/client/storage/ui.js index 095bb4730b..c68f44ee3d 100644 --- a/devtools/client/storage/ui.js +++ b/devtools/client/storage/ui.js @@ -403,7 +403,7 @@ class StorageUI { // We only need to listen to target destruction, but TargetCommand.watchTarget // requires a target available function... - async _onTargetAvailable({ targetFront }) {} + async _onTargetAvailable() {} _onTargetDestroyed({ targetFront }) { // Remove all storages related to this target @@ -1574,7 +1574,7 @@ class StorageUI { } } - onVariableViewPopupShowing(event) { + onVariableViewPopupShowing() { const item = this.view.getFocusedItem(); this._variableViewPopupCopy.setAttribute("disabled", !item); } |