Page MenuHomePhabricator

Leaving page when editing doesn't show warning (mobile Safari)
Open, Needs TriagePublic

Description

Browser: Safari on iPhone.

Steps to reproduce:

  1. Use the desktop site
  2. Edit a page (example)
  3. Write something in the textbox
  4. Click a link to leave the page

Expected results:

  1. 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:

  1. 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.

Event Timeline

Framawiki subscribed.

By doing your step-by-step procedure I have a "Cette page demande de confirmer sa fermeture ; des données saisies pourraient ne pas être enregistrées."/"This page asks you to confirm its closure; data entered may not be saved." warning dialog on Firefox 64. Note that if I repeat the procedure I've not the warning a second time, perhaps a sort of browser caching.

@Framawiki, I'll clarify: The problem exists on mobile Safari. Firefox works as expected.

Ok, thanks for the detail.
The link you provided (https://sv.wiktionary.org/w/index.php?title=Diskussion:asdf&action=edit) is to the desktop version of the site. The mobile has a ".m." keyword in domain name. Can you confirm that you're using mobile safari on desktop site? Perhaps taking a screenshot would be great too.

Yes, that's correct: I'm using Safari on Iphone. I explicitly chose the desktop version of the site.

(I feel like I'm repeating myself. All of this info is available in the original issue description.)