Page MenuHomePhabricator

VisualEditor: Clicking on somewhere else in the document after opening a link inspector inside a slug throws error "TypeError: Cannot read property 'previousSibling' of undefined"
Closed, ResolvedPublic1 Estimated Story Points

Description

Screenshot

Steps to reproduce:

1.Open a page with VE
2.Insert a bullet list
3.Add some indentation
4.Now click on any slug that got created due to indentation
5.Open a link inspector on that position
6.While the link inspector is open, click somewhere else in the document to close the inspector

Observed Result:
The link inspector stays opened in that position and there is an error in the console:
TypeError: Cannot read property 'previousSibling' of undefined

See the screenshot attached

Environment:Betalabs,test2 and en.wiki


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=72558

Attached:

Screen_Shot_2014-10-24_at_1.48.38_PM.png (634×1 px, 222 KB)

Details

Reference
bz72494

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:49 AM
bzimport set Reference to bz72494.
gerritbot subscribed.

Change 190022 had a related patch set uploaded (by Esanders):
Simplify slug behaviour

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

Patch-For-Review

Change 190022 merged by jenkins-bot:
Simplify slug behaviour

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