Page MenuHomePhabricator

Text destroyed, then throws exception when undo-ing
Closed, ResolvedPublic1 Estimated Story Points

Description

  1. Open simple.html
  2. Move the cursor to the start of the heading "What is Lorem Ipsum?"
  3. Press shift+down to select the whole line, and cut it (ctrl+x)
  4. Move the cursor to the start of the document (ctrl+home) and paste (ctrl+v)
  5. Press undo once (ctrl+z). Observe the link at the start of the document "Lorem Ipsum" has disappeared
  6. Press undo again, an exception is thrown.

Event Timeline

Esanders triaged this task as High priority.Mar 1 2017, 9:25 PM
Esanders renamed this task from Annotation destroyed, then throws exception when undo-ing to Text destroyed, then throws exception when undo-ing.Mar 1 2017, 9:39 PM

This happens no matter what the first paragraph starts with. It looks like it's deleting a fixed amount of text.

Jdforrester-WMF set the point value for this task to 1.

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

https://gerrit.wikimedia.org/r/355582

Change 355582 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Don't add transactions to stack until they've had a chance to fail

https://gerrit.wikimedia.org/r/355582

Change 355616 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c78bd8d9b)

https://gerrit.wikimedia.org/r/355616

Change 355616 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c78bd8d9b)

https://gerrit.wikimedia.org/r/355616