Page MenuHomePhabricator

VisualEditor: [Regression wmf1] Uncaught Error: ve.dm.Document.getNodeFromOffset(): offset 339 is out of bounds is appearing in Mobile VE after reopening a page for the second time and hitting return twice
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with Mobile VE
2.Close the VE for it
3.Again reopen the page with VE
4.Go to the last and hit return twice

Observed Result:
The following error appears in the console:
Uncaught Error: ve.dm.Document.getNodeFromOffset(): offset 339 is out of bounds

See the screenshot attached

Test Environment:http://en.m.wikipedia.beta.wmflabs.org/
Page: http://en.m.wikipedia.beta.wmflabs.org/wiki/New_page_for_testing_the_special_characters_by_creating_a_new_page#editor/0


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz64034

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 3:12 AM
bzimport set Reference to bz64034.

Change 126881 had a related patch set uploaded by Catrope:
Destroy the VE target after saving

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

Change 126881 merged by jenkins-bot:
Destroy the VE target after saving

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

Verified the fix on test2

verified the fix on production