summaryrefslogtreecommitdiffstats
path: root/dom/cache/test/mochitest/test_cache_orphaned_body.html
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/cache/test/mochitest/test_cache_orphaned_body.html
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/cache/test/mochitest/test_cache_orphaned_body.html')
-rw-r--r--dom/cache/test/mochitest/test_cache_orphaned_body.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/cache/test/mochitest/test_cache_orphaned_body.html b/dom/cache/test/mochitest/test_cache_orphaned_body.html
index 98c0f42267..d540d90c9d 100644
--- a/dom/cache/test/mochitest/test_cache_orphaned_body.html
+++ b/dom/cache/test/mochitest/test_cache_orphaned_body.html
@@ -23,7 +23,7 @@ function setupTestIframe() {
}
function clearStorage() {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
var qms = SpecialPowers.Services.qms;
var principal = SpecialPowers.wrap(document).nodePrincipal;
var request = qms.clearStoragesForPrincipal(principal);
@@ -33,7 +33,7 @@ function clearStorage() {
}
function storageUsage() {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
var qms = SpecialPowers.Services.qms;
var principal = SpecialPowers.wrap(document).nodePrincipal;
var cb = SpecialPowers.wrapCallback(function(request) {
@@ -45,7 +45,7 @@ function storageUsage() {
}
function groupUsage() {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
navigator.storage.estimate().then(storageEstimation => {
resolve(storageEstimation.usage, 0);
});
@@ -53,7 +53,7 @@ function groupUsage() {
}
function workerGroupUsage() {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
function workerScript() {
navigator.storage.estimate().then(storageEstimation => {
postMessage(storageEstimation.usage);
@@ -71,7 +71,7 @@ function workerGroupUsage() {
}
function resetStorage() {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
var qms = SpecialPowers.Services.qms;
var principal = SpecialPowers.wrap(document).nodePrincipal;
var request = qms.resetStoragesForPrincipal(principal);
@@ -81,7 +81,7 @@ function resetStorage() {
}
function gc() {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
SpecialPowers.exactGC(resolve);
});
}