From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../url-classifier/tests/mochitest/test_classify_ping.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toolkit/components/url-classifier/tests/mochitest/test_classify_ping.html') diff --git a/toolkit/components/url-classifier/tests/mochitest/test_classify_ping.html b/toolkit/components/url-classifier/tests/mochitest/test_classify_ping.html index 6a8a189ed2..72bfd35ece 100644 --- a/toolkit/components/url-classifier/tests/mochitest/test_classify_ping.html +++ b/toolkit/components/url-classifier/tests/mochitest/test_classify_ping.html @@ -31,7 +31,7 @@ var id = "1111"; ping(id, host_nottrack); - return new Promise(function(resolve, reject) { + return new Promise(function(resolve) { // Retry at most 30 seconds. isPingedWithRetry(id, expectPing, msg, resolve, 30 * 1000 / RETRY_TIMEOUT_MS); }); @@ -45,7 +45,7 @@ var id = "2222"; ping(id, host_track); - return new Promise(function(resolve, reject) { + return new Promise(function(resolve) { // Retry at most 30 seconds. isPingedWithRetry(id, expectPing, msg, resolve, 30 * 1000 / RETRY_TIMEOUT_MS); }); @@ -59,7 +59,7 @@ var id = "3333"; ping(id, host_track); - return new Promise(function(resolve, reject) { + return new Promise(function(resolve) { setTimeout(function() { isPinged(id, expectPing, msg, resolve); }, timeout); -- cgit v1.2.3