Page MenuHomePhabricator

ContentTranslation source loader doesn't have complete handling for invalid titles
Closed, ResolvedPublic1 Estimated Story Points

Description

The code in ext.cx.source.js says:

title = mw.Title.newFromText( mw.cx.sourceTitle );

if ( title ) {
    mw.cx.sourceTitle = title.getPrefixedText();
}

It looks like the case of invalid title is silently ignored.

Event Timeline

Amire80 raised the priority of this task from to Medium.
Amire80 updated the task description. (Show Details)
Amire80 subscribed.

Change 245583 had a related patch set uploaded (by Amire80):
Handle invalid title when loading the source

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

See T115315 for a similar issue on the server side.

Change 245583 merged by jenkins-bot:
Handle invalid title when loading the source

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