Page MenuHomePhabricator

getTargetDataFromHref errors if passed an invalid URL
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open the link inspector, in internal-link mode
  • Enter https:// into the inspector's input

What happens?:
Observe an exception in the browser console.

What should have happened instead?:
No exception.

Event Timeline

Change #1039282 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] getTargetDataFromHref: catch error if passed invalid URL

https://gerrit.wikimedia.org/r/1039282

Change #1039282 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] getTargetDataFromHref: catch error if passed invalid URL

https://gerrit.wikimedia.org/r/1039282

Ryasmeen edited projects, added Verified; removed Editing QA.