Page MenuHomePhabricator

VisualEditor: Attempting to set an invalid range on undo
Closed, ResolvedPublic

Description

  1. Open a page with some content (a few paragraphs)
  2. Select all and delete
  3. Insert a math node
  4. Press undo

You'll get an exception as selectionBefore in the undo stack is still the range of the whole original document, but your document should be empty.


Version: unspecified
Severity: normal

Details

Reference
bz70175

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:36 AM
bzimport set Reference to bz70175.

gerritadmin wrote:

Change 157149 had a related patch set uploaded by Esanders:
Track selectionBefore in staging transactions

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

gerritadmin wrote:

Change 157149 merged by jenkins-bot:
Track selectionBefore in staging transactions

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