Page MenuHomePhabricator

[Regression] JavaScript module mw.widgets.NamespaceInputWidget.static.getNamespaceDropdownOptions didn't convert namespace
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Go to any special page with namespace selector with language variants
  • Test 1: Check the option labels in the namespace selector with JavaScript disabled
  • Test 2: Check the option labels in the namespace selector with JavaScript enabled
  • Test 3: Try to execute mw.widgets.NamespaceInputWidget.static.getNamespaceDropdownOptions( {} ); in console

What happens?:

  • Test 2: The language variant namespace names unexpectedly replaced by canonical namespace names.
  • Test 3: The cause (the returned result didn't contain any information about language variant namespace names)
  • When JavaScript being enabled, it made the language variant namespace names unexpectedly replaced by canonical namespace names.

What should have happened instead?:

  • Test 1: Expected options
  • The namespace names should show in the variant, like what it shows without JavaScript
  • resources/src/mediawiki.widgets/mw.widgets.NamespacesMultiselectWidget.js should use language variant namespace names instead of changing them to the canonical namespace name
  • resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js#L44 should give information about language variant namespace names

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Winston_Sung renamed this task from JavaScript module mw.widgets.NamespaceInputWidget.static.getNamespaceDropdownOptions didn't convertNamespace to JavaScript module mw.widgets.NamespaceInputWidget.static.getNamespaceDropdownOptions didn't convert namespace.Dec 27 2023, 6:49 PM
Winston_Sung renamed this task from JavaScript module mw.widgets.NamespaceInputWidget.static.getNamespaceDropdownOptions didn't convert namespace to [Regression] JavaScript module mw.widgets.NamespaceInputWidget.static.getNamespaceDropdownOptions didn't convert namespace.
Winston_Sung added a project: Regression.