Page MenuHomePhabricator

VisualEditor: [Regression wmf7] Characters and Pawns are getting added in each line and throwing error: offset -1 is out of bounds while trying to add a reference in Firefox
Closed, ResolvedPublic



Steps to reproduce

1.Open a page
2.Go to Insert>Reference
3.Type in a text as reference

Observed Result:
Each letters are getting added in each line , ends with a pawn then the text appears.The following error appears in the console:

Error: offset -1 is out of bounds

After clicking on "Insert Reference":

TypeError: sel.nativeSelection is null

After saving the page:
TypeError: elem.ownerDocument.defaultView is null

This issue is happening on Firefox only.


Version: unspecified
Severity: major


Screen_Shot_2014-05-29_at_11.10.59_PM.png (460×723 px, 47 KB)



Event Timeline

Caused by being a breaking change but not marked as such. Will be fixed once is merged.

Change 136451 had a related patch set uploaded by Jforrester:
Cleanup createSurface methods

Change 136451 merged by jenkins-bot:
Cleanup createSurface methods

Verified the fix in running wmf8