[Webkit-unassigned] [Bug 262358] REGRESSION (STP): The language switching menu is broken on English Wikipedia

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 2 15:55:49 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=262358

--- Comment #3 from Karl Dubost <karlcow at apple.com> ---
No events at all seem to be taking place.

The function which captures the clicks for the language selector is:

```
function loadContentLanguageSelector(ev) {
  var $target = $(ev.currentTarget);
  if ($target.attr('data-uls-loaded')) {
    return;
  }
  ev.preventDefault();
  mw.loader.using(['ext.uls.mediawiki', 'mediawiki.ui.button']).then(function() {
    var parent, languageNodes, standalone, uls;
    parent = document.querySelectorAll('.mw-portlet-lang, #p-lang')[0];
    languageNodes = parent ? parent.querySelectorAll('.interlanguage-link-target') : [];
    standalone = isUsingStandaloneLanguageButton();
    $target.attr('data-uls-loaded', true);
    launchULS($target, mw.uls.getInterlanguageListFromNodes(languageNodes), !standalone);
    if (standalone) {
      uls = $target.data('uls');
      if (languageNodes.length) {
        addActionsMenuTriggers(uls);
      } else {
        uls.$menu.find('#uls-settings-block').eq(0).hide();
        addEmptyState(uls);
      }
      $target.trigger('click');
    } else {
      $target.trigger('click');
    }
  });
}
```

we could try to Autospade this (regression testing)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231002/f7408d81/attachment.htm>


More information about the webkit-unassigned mailing list