Page MenuHomePhabricator

VisualEditor: Link widget in a slug fails with "No class registered by that name: undefined"
Closed, ResolvedPublic

Description

ve.Factory.prototype.create throws an Error, "No class registered by that name: undefined" when using the link widget. It can be reproduced with:

  1. Start with blank document
  2. Hit Ctrl-K
  3. Type some page name that doesn't exist
  4. Hit escape twice.

This leaves a broken widget that takes several clicks (not sure the exact pattern here) to clear.

  1. Try to open the link widget again. It won't be possible, either with Ctrl+K or the button.

This is live on English Wikipedia.


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

Details

Reference
bz52256

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:02 AM
bzimport set Reference to bz52256.

Created attachment 13014
Broken link widget after pressing Ctrl-K on empty page, then exiting

Attached:

Broken_link_widget.png (358×1 px, 45 KB)

It also copies the page name from the link widget to the document as apparent plain text, even though you exit out with double-ESC.