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