Page MenuHomePhabricator

VisualEditor: [Regression] When an image is the only item of the document , trying to delete it right after opening VE throws "Error: offset was inside a handlesOwnChildren node"
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a blank page with VE
2.Insert an image as the first item of the document
3.Save the page
4.Reopen the page
5.The image gets highlighted, now try to delete the image

Observed Result:
The following error appears in the console:
Uncaught Error: offset was inside a handlesOwnChildren node

See the screenshot attached.


Version: unspecified
Severity: major

Attached:

Screen_Shot_2014-09-23_at_11.44.03_AM.png (710×1 px, 248 KB)

Details

Reference
bz71187

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:49 AM
bzimport set Reference to bz71187.

It happens for reflist too.Though thats not something common to encounter to have reflist at the beginning of a page

Change 162884 had a related patch set uploaded by Esanders:
Be more cautious about placing the cursor

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

Change 162884 merged by jenkins-bot:
Be more cautious about placing the cursor

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

Verified the fix in production