> are there spec reasons we can't just stop navigation permanently as soon as we fire beforeunload
At first blush, per spec you can't stop navigation inside beforeunload at all. Or something. Figuring out what the spec says here is rocket science. :(
> are there spec reasons we can't just stop navigation permanently as soon as we fire beforeunload
At first blush, per spec you can't stop navigation inside beforeunload at all. Or something. Figuring out what the spec says here is rocket science. :(