Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<html class="test-wait">
<script>
navigator.locks.request("foo", async () => {
await new Promise(queueMicrotask);
document.documentElement.classList.remove("test-wait");
});
navigator.locks.request("foo", { steal: true }, () => {});
</script>