Page MenuHomePhabricator

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

Description

Screenshot

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: ve.dm.Document.getNodeFromOffset(): 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.

Environmen:test2


Version: unspecified
Severity: major

Attached:

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

Details

Reference
bz65934

Event Timeline

Caused by https://gerrit.wikimedia.org/r/#/c/135012/ being a breaking change but not marked as such. Will be fixed once https://gerrit.wikimedia.org/r/#/c/135014 is merged.

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

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

Change 136451 merged by jenkins-bot:
Cleanup createSurface methods

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

Verified the fix in en.wiki running wmf8