- Open simple.html
- Move the cursor to the start of the heading "What is Lorem Ipsum?"
- Press shift+down to select the whole line, and cut it (ctrl+x)
- Move the cursor to the start of the document (ctrl+home) and paste (ctrl+v)
- Press undo once (ctrl+z). Observe the link at the start of the document "Lorem Ipsum" has disappeared
- Press undo again, an exception is thrown.
Description
Details
Related Objects
Event Timeline
This happens no matter what the first paragraph starts with. It looks like it's deleting a fixed amount of text.
Bisect blames https://gerrit.wikimedia.org/r/#/c/336435/ (@Catrope) - although this may just have been exposing the bug, as paste behaves differently before this commit.
Change 355582 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Don't add transactions to stack until they've had a chance to fail
Change 355582 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Don't add transactions to stack until they've had a chance to fail
Change 355616 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c78bd8d9b)
Change 355616 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c78bd8d9b)