document.open(): only abort when there is a navigation
Edit
New
Add a description
of
document.open(): only abort when there is a navigation