Page MenuHomePhabricator

VisualEditor: Broken link creation workflow
Closed, DeclinedPublic

Description

I'm not sure exactly how I cause this bug but I've seen it twice now.

Works somewhat like this:
Click anywhere in the textarea and ensure there is whitespace before the cursor and nothing highlighted.

Click the link button
enter text, save it.

The link doesn't get added anywhere and now clicking the link button to create a new link has no effect.

I get JavaScript exception:
Uncaught Error: Offset could not be translated to a DOM element and offset: 6306


Version: unspecified
Severity: normal

Details

Reference
bz55540

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:21 AM
bzimport set Reference to bz55540.

This is difficult to look into without steps to reproduce. Let us know if you see it again, and how.

Yeh I know.. I was hoping the Javascript exception would help debug somewhat. I managed to make it happen twice but haven't done so recently. Any clues from that exception to when it might occur?

Yes, that exception only throws from one place, and the high number looks like it's trying to find a position beyond the end of the document, but I can't reproduce.