summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/child
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/extensions/child')
-rw-r--r--toolkit/components/extensions/child/ext-declarativeNetRequest.js2
-rw-r--r--toolkit/components/extensions/child/ext-storage.js8
-rw-r--r--toolkit/components/extensions/child/ext-test.js4
-rw-r--r--toolkit/components/extensions/child/ext-userScripts-content.js2
4 files changed, 8 insertions, 8 deletions
diff --git a/toolkit/components/extensions/child/ext-declarativeNetRequest.js b/toolkit/components/extensions/child/ext-declarativeNetRequest.js
index 82028c6105..27e67d12f8 100644
--- a/toolkit/components/extensions/child/ext-declarativeNetRequest.js
+++ b/toolkit/components/extensions/child/ext-declarativeNetRequest.js
@@ -11,7 +11,7 @@ ChromeUtils.defineESModuleGetters(this, {
});
this.declarativeNetRequest = class extends ExtensionAPI {
- getAPI(context) {
+ getAPI() {
return {
declarativeNetRequest: {
get GUARANTEED_MINIMUM_STATIC_RULES() {
diff --git a/toolkit/components/extensions/child/ext-storage.js b/toolkit/components/extensions/child/ext-storage.js
index 2d10964d0a..3d71a1cd60 100644
--- a/toolkit/components/extensions/child/ext-storage.js
+++ b/toolkit/components/extensions/child/ext-storage.js
@@ -67,7 +67,7 @@ this.storage = class extends ExtensionAPI {
};
}
- getLocalIDBBackend(context, { fireOnChanged, serialize, storagePrincipal }) {
+ getLocalIDBBackend(context, { fireOnChanged, storagePrincipal }) {
let dbPromise;
async function getDB() {
if (dbPromise) {
@@ -185,7 +185,7 @@ this.storage = class extends ExtensionAPI {
return items;
}
// If we got here, then `items` is an object generated by `ObjectType`'s
- // `normalize` method from Schemas.jsm. The object returned by `normalize`
+ // `normalize` method from Schemas.sys.mjs. The object returned by `normalize`
// lives in this compartment, while the values live in compartment of
// `context.contentWindow`. The `sanitize` method runs with the principal
// of `context`, so we cannot just use `ExtensionStorage.sanitize` because
@@ -348,10 +348,10 @@ this.storage = class extends ExtensionAPI {
.callParentAsyncFunction("storage.managed.get", [serialize(keys)])
.then(deserialize);
},
- set(items) {
+ set() {
return Promise.reject({ message: "storage.managed is read-only" });
},
- remove(keys) {
+ remove() {
return Promise.reject({ message: "storage.managed is read-only" });
},
clear() {
diff --git a/toolkit/components/extensions/child/ext-test.js b/toolkit/components/extensions/child/ext-test.js
index a4178b63ff..3d9835d61f 100644
--- a/toolkit/components/extensions/child/ext-test.js
+++ b/toolkit/components/extensions/child/ext-test.js
@@ -248,7 +248,7 @@ this.test = class extends ExtensionAPI {
},
assertDeepEq(expected, actual, msg) {
- // The bindings generated by Schemas.jsm accepts any input, but the
+ // The bindings generated by Schemas.sys.mjs accepts any input, but the
// WebIDL-generated binding expects a structurally cloneable input.
// To ensure consistent behavior regardless of which mechanism was
// used, verify that the inputs are structurally cloneable.
@@ -302,7 +302,7 @@ this.test = class extends ExtensionAPI {
promise = Promise.resolve(promise);
return promise.then(
- result => {
+ () => {
let message = `Promise resolved, expected rejection '${toSource(
expectedError
)}'`;
diff --git a/toolkit/components/extensions/child/ext-userScripts-content.js b/toolkit/components/extensions/child/ext-userScripts-content.js
index ee1a1b7a8f..d2edb3c515 100644
--- a/toolkit/components/extensions/child/ext-userScripts-content.js
+++ b/toolkit/components/extensions/child/ext-userScripts-content.js
@@ -375,7 +375,7 @@ this.userScriptsContent = class extends ExtensionAPI {
throw new ExtensionError(USERSCRIPT_DISABLED_ERRORMSG);
}
- let handler = (event, metadata, scriptSandbox, eventResult) => {
+ let handler = (event, metadata, scriptSandbox) => {
const us = new UserScript({
context,
metadata,