summaryrefslogtreecommitdiffstats
path: root/dom/push/PushService.sys.mjs
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/push/PushService.sys.mjs
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/push/PushService.sys.mjs')
-rw-r--r--dom/push/PushService.sys.mjs22
1 files changed, 10 insertions, 12 deletions
diff --git a/dom/push/PushService.sys.mjs b/dom/push/PushService.sys.mjs
index 7314e3df54..1add65992f 100644
--- a/dom/push/PushService.sys.mjs
+++ b/dom/push/PushService.sys.mjs
@@ -623,7 +623,7 @@ export var PushService = {
this._db.close();
this._db = null;
},
- err => {
+ () => {
this._db.close();
this._db = null;
}
@@ -1162,17 +1162,15 @@ export var PushService = {
let keyPromise;
if (aPageRecord.appServerKey && aPageRecord.appServerKey.length) {
let keyView = new Uint8Array(aPageRecord.appServerKey);
- keyPromise = lazy.PushCrypto.validateAppServerKey(keyView).catch(
- error => {
- // Normalize Web Crypto exceptions. `nsIPushService` will forward the
- // error result to the DOM API implementation in `PushManager.cpp` or
- // `Push.js`, which will convert it to the correct `DOMException`.
- throw errorWithResult(
- "Invalid app server key",
- Cr.NS_ERROR_DOM_PUSH_INVALID_KEY_ERR
- );
- }
- );
+ keyPromise = lazy.PushCrypto.validateAppServerKey(keyView).catch(() => {
+ // Normalize Web Crypto exceptions. `nsIPushService` will forward the
+ // error result to the DOM API implementation in `PushManager.cpp` or
+ // `Push.js`, which will convert it to the correct `DOMException`.
+ throw errorWithResult(
+ "Invalid app server key",
+ Cr.NS_ERROR_DOM_PUSH_INVALID_KEY_ERR
+ );
+ });
} else {
keyPromise = Promise.resolve(null);
}