summaryrefslogtreecommitdiffstats
path: root/dom/crypto
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /dom/crypto
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 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 )