1
0
Fork 0
firefox/testing/web-platform/tests/storage/resources/helpers.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

9 lines
356 B
JavaScript

// Try explicitly denying so that persist() won't wait for user prompt
async function tryDenyingPermission() {
try {
await test_driver.set_permission({ name: "persistent-storage" }, "denied");
} catch {
// Not all implementations support this yet, but some implementations may
// still be able to continue without explicit permission
}
}