✅ Test that replacement history entries don't break forward navigation.
This is a test for #7175
This commit is contained in:
parent
d4b204799d
commit
47df447e4f
2 changed files with 57 additions and 0 deletions
10
spec/fixtures/pages/history-replace.html
vendored
Normal file
10
spec/fixtures/pages/history-replace.html
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
window.addEventListener("load", function() {
|
||||
window.history.replaceState(window.history.state, "test page", window.location.href)
|
||||
require('electron').ipcRenderer.sendToHost('history', window.history.length);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue