summaryrefslogtreecommitdiffstats
path: root/dom/crypto
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/crypto
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/crypto')
-rw-r--r--dom/crypto/test/test-array.js2
-rw-r--r--dom/crypto/test/test-worker.js2
-rw-r--r--dom/crypto/test/test_WebCrypto.html4
-rw-r--r--dom/crypto/test/test_WebCrypto_ECDH.html2
-rw-r--r--dom/crypto/test/test_WebCrypto_JWK.html2
5 files changed, 6 insertions, 6 deletions
diff --git a/dom/crypto/test/test-array.js b/dom/crypto/test/test-array.js
index 0d7f67433f..357694f9de 100644
--- a/dom/crypto/test/test-array.js
+++ b/dom/crypto/test/test-array.js
@@ -112,7 +112,7 @@ function WorkerTest(worker, name, test) {
// We expect only boolean responses from the worker script.
worker.onmessage = e => this.complete(e.data);
- worker.onerror = e => this.complete(false);
+ worker.onerror = () => this.complete(false);
};
var base = new Test(name, test);
diff --git a/dom/crypto/test/test-worker.js b/dom/crypto/test/test-worker.js
index 263877ad08..47a365a66f 100644
--- a/dom/crypto/test/test-worker.js
+++ b/dom/crypto/test/test-worker.js
@@ -31,7 +31,7 @@ function memcmp_complete(test, value) {
};
}
-function error(test) {
+function error() {
return function (x) {
throw x;
};
diff --git a/dom/crypto/test/test_WebCrypto.html b/dom/crypto/test/test_WebCrypto.html
index 90da813880..aded1bdd91 100644
--- a/dom/crypto/test/test_WebCrypto.html
+++ b/dom/crypto/test/test_WebCrypto.html
@@ -56,7 +56,7 @@ TestArray.addTest(
crypto.subtle.importKey("raw", tv.raw, alg, true, ["encrypt"])
.then(
error(that),
- complete(that, function(x) { return true; })
+ complete(that, function() { return true; })
);
}
);
@@ -982,7 +982,7 @@ TestArray.addTest(
.then(doVerify)
.then(
error(that),
- complete(that, function(x) { return true; })
+ complete(that, function() { return true; })
);
}
);
diff --git a/dom/crypto/test/test_WebCrypto_ECDH.html b/dom/crypto/test/test_WebCrypto_ECDH.html
index 2d8f9bba28..8386d3c3dd 100644
--- a/dom/crypto/test/test_WebCrypto_ECDH.html
+++ b/dom/crypto/test/test_WebCrypto_ECDH.html
@@ -61,7 +61,7 @@ TestArray.addTest(
function setKeyPair(x) { pair = x; }
function doDerive(n) {
- return function(x) {
+ return function() {
return crypto.subtle.deriveBits({ name: "ECDH", public: pair.publicKey }, pair.privateKey, n * 8);
};
}
diff --git a/dom/crypto/test/test_WebCrypto_JWK.html b/dom/crypto/test/test_WebCrypto_JWK.html
index 6e83a73d8d..4fa2af5dce 100644
--- a/dom/crypto/test/test_WebCrypto_JWK.html
+++ b/dom/crypto/test/test_WebCrypto_JWK.html
@@ -76,7 +76,7 @@ TestArray.addTest(
function doVerify(x) {
return crypto.subtle.verify(alg.name, x, tv.rsassa.sig256, tv.rsassa.data);
}
- function fail(x) { error(that); }
+ function fail() { error(that); }
crypto.subtle.importKey("jwk", tv.rsassa.jwk_pub, alg, false, ["verify"])
.then( doVerify, fail )