summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB/test/unit/xpcshell-head-parent-process.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /dom/indexedDB/test/unit/xpcshell-head-parent-process.js
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/indexedDB/test/unit/xpcshell-head-parent-process.js')
-rw-r--r--dom/indexedDB/test/unit/xpcshell-head-parent-process.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/dom/indexedDB/test/unit/xpcshell-head-parent-process.js b/dom/indexedDB/test/unit/xpcshell-head-parent-process.js
index f6bd2608ef..840eef7908 100644
--- a/dom/indexedDB/test/unit/xpcshell-head-parent-process.js
+++ b/dom/indexedDB/test/unit/xpcshell-head-parent-process.js
@@ -56,7 +56,11 @@ if (!this.runTest) {
if (testSteps.constructor.name === "AsyncFunction") {
// Do run our existing cleanup function that would normally be called by
// the generator's call to finishTest().
- registerCleanupFunction(resetTesting);
+ registerCleanupFunction(function () {
+ if (SpecialPowers.isMainProcess()) {
+ resetTesting();
+ }
+ });
add_task(testSteps);
@@ -644,7 +648,7 @@ var SpecialPowers = {
clearUserPref(prefName) {
Services.prefs.clearUserPref(prefName);
},
- // Copied (and slightly adjusted) from testing/specialpowers/content/SpecialPowersAPI.jsm
+ // Copied (and slightly adjusted) from testing/specialpowers/api.js
exactGC(callback) {
let count = 0;