fix: promise resolved to early when browser initiated in-page navigation v2 (#39597)
This commit is contained in:
parent
f0ad357af2
commit
f30fbebb98
3 changed files with 34 additions and 2 deletions
15
spec/fixtures/pages/navigate_in_page_and_wait.html
vendored
Normal file
15
spec/fixtures/pages/navigate_in_page_and_wait.html
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
<html>
|
||||
<header>
|
||||
<script type="text/javascript">
|
||||
window.history.replaceState(window.location.href, "Sample Title", window.location.href);
|
||||
// Simulate that we load web page.
|
||||
let d = new Date();
|
||||
const endTime = new Date(d.getTime() + (10 * 1000));
|
||||
while(d.getTime() < endTime) {
|
||||
d = new Date();
|
||||
}
|
||||
</script>
|
||||
</header>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue