User edits and after pushing [publish], gets a message "leave page? changes you made may not be saved"
Description
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/VisualEditor | master | +8 -0 | Release editWarning unload event when switching from old wikitext to VE |
Related Objects
Event Timeline
I can't reproduce this problem. Here's what I tried:
- Go to https://office.wikimedia.org/wiki/Leadership/Executive_Team_Weekly_Updates/2018_August_7 (which seems to be the exact page you were on)
- Click "Edit" to open the visual editor
- Make some changes
- Click "Publish"
- Navigate away from the page using a link on the page
All of these steps worked as expected, and no error message was shown to me. I also tried the same steps except I started out in the wikitext editor and then switched to the visual editor, and started out in the wikitext editor and switched to the visual editor, and couldn't reproduce the problem.
Can you please provide more specific steps to reproduce?
In Chrome:
- go to https://office.wikimedia.org/w/index.php?title=Leadership/Executive_Team_Weekly_Updates/2018_August_21 and click Edit, it takes me to wikitext editor.
- Switch to visual editor
- make some changes
- click Publish
- Get chrome warning
I don't always get the warning. I tried editing the same page and trying steps 1-4 more than once to see if it only happens the first time I try to save, but it happened twice on the same page.
I've managed to reproduce this now. I had to disable the 2017 wikitext editor, and also use single edit tab mode set to wikitext editing by default.
Change 458501 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Release editWarning unload event when switching from old wikitext to VE
Change 458501 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Release editWarning unload event when switching from old wikitext to VE