fix: promise resolved to early when browser initiated in-page navigation (#39260)

This commit is contained in:
Tomasz 2023-08-09 16:06:39 +02:00 committed by GitHub
parent d9329042e2
commit a0effaf9b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 2 deletions

View file

@ -0,0 +1,13 @@
<html>
<header>
<script type="text/javascript">
window.history.replaceState(window.location.href, "Sample Title", window.location.href);
// Simulate that we load web page.
for (let i = 0; i < 10000; i++) {
console.log('wait : ' + i);
}
</script>
</header>
<body>
</body>
</html>