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

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

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

Checked the fix in betalabs.