What is the problem?
While editing, if I undo any unsaved changes I have made to the page and click "Show changes", it does not remove any changes that are currently displayed in the diff area.
Steps to reproduce problem
- Enable Live Preview (go to Preferences > Editing and check "Show previews without reloading the page")
- Find a page and open the source editor
- Make an edit
- Click "Show changes"
- Undo the edit from 3 (so that you are back to where you started, with no changes having been made to the page)
- Click "Show changes"
Expected behavior: The diff area is empty, reflecting the fact there has been no changes
Observed behavior: The diff area stays the same as it was in step 4
Environment
Wiki(s): https://en.wikisource.beta.wmflabs.org MediaWiki 1.38.0-alpha (d2917ab) 00:02, 18 October 2021
Screenshots (if applicable):
This is the page to start with, with no changes:
This is the page after having made a change and clicked "Show changes":
This is the page after undoing the change and clicking "Show changes". Still shows the "foo" change even though it is no longer there:


