Page MenuHomePhabricator

[betalabs] Help Panel: "Uncaught TypeError: mw.ForeignApi is not a constructor" error on mobile
Closed, ResolvedPublic

Description

The issue is in betalabs only.

As a user with the enabled option "Enable the editor help panel", start editing article on mobile -
https://en.m.wikipedia.beta.wmflabs.org/wiki/Zilant22#/editor/all - the Console will display the following error:

Uncaught TypeError: mw.ForeignApi is not a constructor
    at new HelpPanelSearchWidget 
    at helpPanelProcessDialog.HelpPanelProcessDialog.initialize
    at helpPanelProcessDialog.OO.ui.Window.setManager 
    at OoUiWindowManager.OO.ui.WindowManager.addWindows

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 27 2019, 12:48 AM

Change 493136 had a related patch set uploaded (by Catrope; owner: Catrope):
[mediawiki/extensions/GrowthExperiments@master] Help panel: Conditionally depend on mediawiki.ForeignApi when needed

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

Catrope claimed this task.Feb 27 2019, 12:53 AM
Catrope moved this task from Incoming to Code Review on the Growth-Team (Current Sprint) board.

Change 493136 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Help panel: Conditionally depend on mediawiki.ForeignApi when needed

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

Etonkovidova closed this task as Resolved.Feb 27 2019, 8:41 PM

Checked the fix in betalabs.