Abandon changes dialog is inconsistently shown after switching editors on mobile.
The dialog should always be shown upon closing the editor if the user has made changes to the text after opening the editor, and it works fine when not switching editors:
- open WTE, make changes, quit - OK
- open VE, make changes, quit - OK
But if you switch between editors, it usually is not shown, even though it should be:
- open WTE, make changes, switch to VE, quit - OK
- open WTE, switch to VE, make changes, quit - NO WARNING
- open VE, make changes, switch to WTE, quit - NO WARNING
- open VE, switch to WTE, make changes, quit - NO WARNING
For completeness, also testing the case where changes are made in both editors before closing:
- open WTE, make changes, switch to VE, make changes, quit - OK
- open VE, make changes, switch to WTE, make changes, quit - NO WARNING
(I tested the above by quitting the editor using the browser back button. We should also verify that the behavior is the same when using the in-editor "close" button, or when closing the browser tab.)