Page MenuHomePhabricator

TypeError: Cannot read property 'top' of undefined
Closed, ResolvedPublic

Description

https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-2021.05.11?id=XhSeXHkBg_6mGHGhYrgD

TypeError: Cannot read property 'top' of undefined
at Object.handleKeyDown  https://es.wikipedia.org/w/load.php?lang=es&modules=ext.wikiEditor&skin=vector&version=j6u37:30:557
at HTMLDivElement.<anonymous>  https://es.wikipedia.org/w/load.php?lang=es&modules=ext.wikiEditor&skin=vector&version=j6u37:28:484
at HTMLDivElement.dispatch  https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector&version=w1d25:70:214
at HTMLDivElement.elemData.handle  https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector&version=w1d25:66:848

Event Timeline

Reported sample URL is like: https://simple.wikipedia.org/w/index.php?title=*&action=edit&redlink=1

Krinkle moved this task from Untriaged to Older on the Wikimedia-production-error board.
Krinkle added a project: Editing-team.

Assuming old for stats, since this code has not been actively developed for several years. Note that this does not set the priority.

To reproduce

  • open page in source editor
  • press "special characters"
  • scroll in the left panel with the modes
  • press the key up or down
  • error

Change 697141 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/WikiEditor@master] Avoid "Cannot read property 'top' of undefined"

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

Change 697141 merged by jenkins-bot:

[mediawiki/extensions/WikiEditor@master] Avoid "Cannot read property 'top' of undefined" in toolbar

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

Umherirrender claimed this task.