summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-locks/crashtests/settle-after-steal.https.html
blob: 6b337e72e90ec8a08ca216535a1147e2e2f5c8bd (plain)
1
2
3
4
5
6
7
8
9
10
<!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>