Page MenuHomePhabricator

VisualEditor: [Regression pre-wmf21] Uncaught Error: Unbalanced set of replace operations found (+ more) errors when trying to change bullet list to numbered list
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-03-26_at_4.20.50_PM.png (763×1 px, 184 KB)

Details

Reference
bz63154

Event Timeline

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

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
snowman!!

Attached:

Screen_Shot_2014-04-01_at_3.28.10_PM.png (233×790 px, 45 KB)

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 mediawiki.org