Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: promise resolved to early when browser initiated in-page navigat…
…ion v2 (#39678) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Tomasz Malinowski <tomasz@openfin.co>
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |