mediawiki-extensions-Visual.../modules/ve-mw/ui/inspectors
Timo Tijhof d9153a2f1d ui.MWLinkTargetInputWidget: Fix crash on invalid input
Though the initialisation works since core has been fixed, there
are still plently of cases where we take real user input that can
genuinely be invalid.

Most notably, you couldn't make a link to [[.com]] because the
link input widget would crash on an exception from mw.Title.

Even after core was fixed (and ".com" is now valid), one still
couldn't make that link. This time because '.' is an invalid title,
and we create a Title object for that while typing ".com".

ve.ui.MWLinkTargetInputWidget#getLookupMenuItemsFromData:
* Guarded against mw.Title throwing by using newFromText
  and checking it first.

ve.ui.MWLinkInspector#static.legalTitle:
* Removed in favour of checking whether newFromText returns a
  truthy value.

Change-Id: I580bfccb83f86be3ad7e83d31f0834e1cde7df9c
2013-10-09 21:29:48 +00:00
..
ve.ui.MWAlienExtensionInspector.js Fixes for Trevor's crazy half-baked commit 2013-10-09 22:08:13 +02:00
ve.ui.MWExtensionInspector.js Fixes for Trevor's crazy half-baked commit 2013-10-09 22:08:13 +02:00
ve.ui.MWHieroInspector.js Fixes for Trevor's crazy half-baked commit 2013-10-09 22:08:13 +02:00
ve.ui.MWLinkInspector.js ui.MWLinkTargetInputWidget: Fix crash on invalid input 2013-10-09 21:29:48 +00:00
ve.ui.MWMathInspector.js Fixes for Trevor's crazy half-baked commit 2013-10-09 22:08:13 +02:00