Last modified: 2014-04-11 00:58:13 UTC
Created attachment 14928 [details] Screenshot Steps to reproduce: 1.Create a page with VE 2.Add a bullet list 3.Add few items 4.Now change the list to numbered list 5.The cursor gets shifted to the start of the document 6.Now type something Observed Result: Everything starts to behave weirdly .It starts to add text everywhere at the beginning of the page.The list disappears. See the screenshot attached. Test Environment: http://en.wikipedia.beta.wmflabs.org/ Browser: Chrome Version 26.0.1410.65 & FF 25 OS: MAC OS X 10. 8. 5 Page:https://test2.wikipedia.org/w/index.php?title=Checkcursorbullet&veaction=edit
The errors that appears in the console are: Uncaught Error: Unbalanced set of replace operations found Uncaught Error: ve.dm.Document.getNodeFromOffset(): offset 26 is out of bounds
Also, got the following error one time and the snowman while typing after changing the bullet list to numbered list: Uncaught Error: Invalid retain length, cannot retain backwards:-1
Created attachment 14999 [details] snowman!!
Change 123488 had a related patch set uploaded by Catrope: Restore selection after ListAction too https://gerrit.wikimedia.org/r/123488
Change 123488 merged by jenkins-bot: Restore selection after ListAction too https://gerrit.wikimedia.org/r/123488
Verified the fix on Betalabs
Verified the fix on mediawiki.org
Verified the fix in production