HomePhabricator

core: getTitle: Return undefined for non URI links

Authored by Prtksxna.

Description

core: getTitle: Return undefined for non URI links

mw.Uri throws an exception when dealing with -

href="javascript:void(0);"
href="mailto:abc@example.com"
etc.

Using a try…catch to return undefined in this case.

Bug: T95215
Change-Id: I632e9dc0e70a5fddf9f2573572bfc8e7f6232923

Details