Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /web-locks/crashtests/settle-after-steal.https.html - WPT Dashboard Interop Dashboard
<!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>