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:

Details

Reference
bz65934

Event Timeline

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

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 Betalabs

Verified the fix in test2

Verified the fix in en.wiki running wmf8