summaryrefslogtreecommitdiffstats
path: root/dom/push/test/xpcshell/head.js
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/push/test/xpcshell/head.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.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/push/test/xpcshell/head.js')
-rw-r--r--dom/push/test/xpcshell/head.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dom/push/test/xpcshell/head.js b/dom/push/test/xpcshell/head.js
index da50ee3c5c..926d523201 100644
--- a/dom/push/test/xpcshell/head.js
+++ b/dom/push/test/xpcshell/head.js
@@ -46,7 +46,7 @@ var isParent =
Services.appinfo.processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
// Stop and clean up after the PushService.
-Services.obs.addObserver(function observe(subject, topic, data) {
+Services.obs.addObserver(function observe(subject, topic) {
Services.obs.removeObserver(observe, topic);
PushService.uninit();
// Occasionally, `profile-change-teardown` and `xpcom-shutdown` will fire
@@ -107,7 +107,7 @@ function waterfall(...callbacks) {
* @returns {Promise} A promise that fulfills when the notification is fired.
*/
function promiseObserverNotification(topic, matchFunc) {
- return new Promise((resolve, reject) => {
+ return new Promise(resolve => {
Services.obs.addObserver(function observe(subject, aTopic, data) {
let matches = typeof matchFunc != "function" || matchFunc(subject, data);
if (!matches) {
@@ -305,7 +305,7 @@ MockWebSocket.prototype = {
this._handleMessage(msg);
},
- close(code, reason) {
+ close() {
waterfall(() => this._listener.onStop(this._context, Cr.NS_OK));
},
@@ -413,7 +413,7 @@ var setUpServiceInParent = async function (service, db) {
}),
makeWebSocket(uri) {
return new MockWebSocket(uri, {
- onHello(request) {
+ onHello() {
this.serverSendMsg(
JSON.stringify({
messageType: "hello",