Page MenuHomePhabricator

Unable to show preview on
Open, Needs TriagePublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

What happens?:
Infinite loader with the following in the developer console:

jQuery.Deferred exception: URI malformed URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at Function.Uri.decode (
    at Uri.parse (
    at new Uri (
    at NodeList.forEach (<anonymous>)
    at (
    at (
    at mightThrow ( undefined

What should have happened instead?:

Event Timeline

ppelberg moved this task from Untriaged to Upcoming on the Editing-team board.
ppelberg moved this task from To Triage to Triaged on the VisualEditor board.
matmarex added a subscriber: matmarex. crashes in the mw.Uri constructor, because the page has a link to The percent signs look like percent-encoding, but they're not, which confuses mw.Uri.

We probably don't even need to use mw.Uri there. We could find and fix the fragment part of the URL with some regexes.