blob: 1e6672e78459562c37e70c80f993f1c0d735e2f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
let bounceTrackingProtection;
add_setup(async function () {
await SpecialPowers.pushPrefEnv({
set: [
["privacy.bounceTrackingProtection.requireStatefulBounces", true],
["privacy.bounceTrackingProtection.bounceTrackingGracePeriodSec", 0],
],
});
bounceTrackingProtection = Cc[
"@mozilla.org/bounce-tracking-protection;1"
].getService(Ci.nsIBounceTrackingProtection);
});
add_task(async function test_bounce_stateful_indexedDB() {
info("Client bounce with indexedDB.");
await runTestBounce({
bounceType: "client",
setState: "indexedDB",
setStateInWebWorker: true,
});
});
// FIXME: (Bug 1889898) This test is skipped because it triggers a shutdown
// hang.
add_task(async function test_bounce_stateful_indexedDB_nestedWorker() {
info("Client bounce with indexedDB access from a nested worker.");
await runTestBounce({
bounceType: "client",
setState: "indexedDB",
setStateInNestedWebWorker: true,
});
}).skip();
|