Closed domenic closed 1 year ago
Yes, so in Chrome we allow same-document navigations, but other navigations will result in closing the document PiP window. I believe that means we'd also close in the situations you describe in the second bullet point
Specifically, here is the code that closes the window on navigation:
OK, great, that makes sense. Then, I would suggest adding a monkeypatch section to the spec which happens as part of the task queued in step 16.3 of https://html.spec.whatwg.org/#navigate .
I think this should be fixed, but let me know what you think about it. If it looks good, I can open an issue to merge the monkeypatch
This doesn't quite suffice, although it's close. What will happen now is:
location.href
runsWe need to actually abort the navigation process, similar to what step 16.2 in navigation does.
I only found this by accident by reading the non-normative introduction:
Is this still intended to be implemented? If so, we've got some fun ahead of us, figuring out how to spec it. Some questions to answer:
history.pushState()
orlocation.hash = "foo"
, OK?Content-Disposition: attachment
or status-code 204/205 destination? Those never actually move to a new document. (But, we only find out after doing a network round trip.)