Steps to reproduce
- Enable the preference "Warn me when I leave an edit page with unsaved changes" at Special:Preferences#mw-prefsection-editing
- Go to https://en.wikipedia.org/wiki/Special:MyPage/common.js?action=edit
- Code something cool! (ok, for now just type "test" :-)
- Try to close the page
There should be a warning such as "Leaving this page may cause you to lose any changes you have made. If you are logged in, you can disable this warning in the "Editing" section of your preferences."
The page is closed without warning and you lose your work!
- Google Chrome 32
- Firefox 26