Page MenuHomePhabricator

VisualEditor: [Regression] “Uncaught Error: offset -1 out of bounds” when adding bullet/numbered list with link inspector open
Closed, ResolvedPublic

Description

screenshot of the console error

Environment- test2,production,beta

1>In a blank page, open the link inspector,type in some text in the link input box and keep the inspector open.
2> While the inspector is open ,click on to add a bullet/numbered list.
3> JS console error “Uncaught Error: offset -1 out of bounds” and the inspector remains open.See screenshot.

Clicking on Done or Remove does not close the inspector.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=72494

Attached:

s3.PNG (1×2 px, 104 KB)

Details

Reference
bz72558

Event Timeline

Change 170855 had a related patch set uploaded by Catrope:
Protect against offset=-1 in insertContent()

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

Change 170855 merged by jenkins-bot:
Protect against offset=-1 in insertContent()

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

Verified the fix in betalbs and test2.