settle-after-steal.https.html (296B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <html class="test-wait"> 4 <script> 5 navigator.locks.request("foo", async () => { 6 await new Promise(queueMicrotask); 7 document.documentElement.classList.remove("test-wait"); 8 }); 9 navigator.locks.request("foo", { steal: true }, () => {}); 10 </script>