What is the problem?
I find after I "Show preview" or "Show changes" for a section edit, if I then do "Discard changes" it discards for the whole page (and in some cases the section as well).
Originally raised in T352028#9455995.
Steps to reproduce problem
- Go to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Conflict-title-0.650954540390162-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n&action=edit and make an edit (don't save)
- Go to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Conflict-title-0.650954540390162-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n&action=edit§ion=1 and make an edit (don't save)
- Reload the page
- Click "Discard changes" in the popup
- Inspect indexeddb data on the browser. The data for the whole page will have been deleted, but the section data might still be there. If you then trigger an ER save (e.g. by switching tabs) the section data will also be cleared.
Environment
Browser: Firefox 115.
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.42.0-alpha (cab3f6e) 10:39, 12 January 2024.
Editor: WikiEditor 0.5.4 (cd6b88e) 07:33, 10 January 2024.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | https://phabricator.wikimedia.org/T354948 here |