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




Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:17 AM
bzimport set Reference to bz65934.
Ryasmeen created this task.May 30 2014, 6:15 AM

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 Betalabs

Verified the fix in test2

Verified the fix in running wmf8