mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
d9153a2f1d
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 |
||
---|---|---|
.. | ||
ve.ui.MWAlienExtensionInspector.js | ||
ve.ui.MWExtensionInspector.js | ||
ve.ui.MWHieroInspector.js | ||
ve.ui.MWLinkInspector.js | ||
ve.ui.MWMathInspector.js |