Browser: Safari on iPhone.
Steps to reproduce:
- Use the desktop site
- Edit a page (example)
- Write something in the textbox
- Click a link to leave the page
Expected results:
- You get confirmation prompt, like in Firefox, e.g. "This page is asking you to confirm that you want to leave - data you have entered may not be saved."
Actual results:
- The browser leaves the page without any confirmation
A cursory search on the internet suggests that you could solve this with the pagehide event somehow.