https://bugzilla.wikimedia.org/show_bug.cgi?id=60615
Web browser: --- Bug ID: 60615 Summary: Edit Warning doesn't work if CodeEditor is enabled Product: MediaWiki Version: unspecified Hardware: All OS: All Status: NEW Keywords: javascript Severity: normal Priority: Unprioritized Component: Page editing Assignee: wikibugs-l@lists.wikimedia.org Reporter: mybugs.m...@gmail.com Classification: Unclassified Mobile Platform: --- 1. Enable the preference "Warn me when I leave an edit page with unsaved changes" ([[MediaWiki:tog-useeditwarning]]) at https://en.wikipedia.org/wiki/Special:Preferences?uselang=en#mw-prefsection-editing 2. Go to https://en.wikipedia.org/wiki/Special:MyPage/common.js?action=edit 3. Code something cool! (ok, for now just type "test" :-) 4. Try to close the page Expected result: 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." Actual result: The page is closed without warning and you lose your work! -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l