- Open an article in VE, e.g. https://en.wikipedia.org/w/index.php?title=Daron_Acemoglu&veaction=edit
- Add a word and a space to the article then hit reload, your edit will auto-recover
- Paste the following plain text into the third paragraph (between references 4 & 5): <ref>Hello</ref>
- Observe that you have a re-use of reference [3]
- Expect that you would have a new reference (numbered [5]) with the contents you pasted.
The cause of this issue is that the DM documents persistent storage is not being saved to sessionStorage, this is because:
- In https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Cite/+/1050578, an unserializable object (an instance of MWDocumentReferences) was added to the persistent storage. (Note that persistent storage did not document this requirement, or that it was recovered by auto-save)
- When the autosave code (in ve.dm.Surface) tried to serialize and store that object, it threw an error, but the SafeStorage wrapper swallowed it, so everything appeared to be working.