Page MenuHomePhabricator

JavaScript error from missing dependency on mediawiki.Uri
Closed, ResolvedPublic1 Estimated Story Points


I loaded , and in my browser console was the error

TypeError: mw.Uri is not a function
Line 14

The '' module loads this JavaScript file, but ContentTranslation/extension.js does not declare its dependency on mediawiki.Uri. This allowed mediawiki.Uri.js to happen to load after in debug mode, so fail. Easy fix. says "It is important to test your code in both debug and production modes." :-)

Event Timeline

Spage raised the priority of this task from to High.
Spage updated the task description. (Show Details)
Spage added a subscriber: Spage.

Change 230027 had a related patch set uploaded (by KartikMistry):
Add missing dependency to

santhosh added a project: LE-CX6-Sprint 1.
santhosh set Security to None.
santhosh moved this task from Backlog to In Review on the LE-CX6-Sprint 1 board.
santhosh added a subscriber: santhosh.

Change 230027 merged by jenkins-bot:
Add missing dependency to

KartikMistry edited a custom field.
KartikMistry moved this task from In Review to Done on the LE-CX6-Sprint 1 board.