Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
fast
/
history
/
resources
/
replaceState-during-beforeunload.html
blob: 232859e3d43df092f0a7f6ba2703330cc623a26b [
file
] [
log
] [
blame
]
<body>
<div
style
=
"
height
:
2000px
;
"
></div>
<script>
history
.
back
();
window
.
onbeforeunload
=
function
()
{
history
.
replaceState
({
foo
:
'bar'
},
null
,
"#"
);
window
.
scrollTo
(
0
,
1000
);
}
</script>
</body>