This feature isn't included. Also the dialog box for open with application is different compared to Safari 15. It needs to ask permission first.
6
Are you sure you want to leave this website feature
Can you separate the other one into its own issue?
a year later
Done (i've gotten this alert before)
When you close a browser window in Safari, and another tab contains text in a form that has not been submitted, you are prompted to see if you want to avoid closing the window (and losing what you were doing). There may be some other ways to add similar functionality for closing a tab while there is something to be submitted etc.
Example:
a year later
Merged 2 posts from Add a prompt on closing windows where a tab contains unsubmitted text content in a form.
6 months later
any news on this yet? came here because it messed me up when i accidentally closed a tab with a lot of work on it.
No one is typing