mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-05 22:22:54 +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.MWCategoryInputWidget.js | ||
ve.ui.MWCategoryItemWidget.js | ||
ve.ui.MWCategoryPopupWidget.js | ||
ve.ui.MWCategoryWidget.js | ||
ve.ui.MWLinkTargetInputWidget.js | ||
ve.ui.MWMediaResultWidget.js | ||
ve.ui.MWMediaSearchWidget.js | ||
ve.ui.MWParameterResultWidget.js | ||
ve.ui.MWParameterSearchWidget.js | ||
ve.ui.MWReferenceResultWidget.js | ||
ve.ui.MWReferenceSearchWidget.js | ||
ve.ui.MWTitleInputWidget.js |