Page MenuHomePhabricator

Download button in audio player on Wiktionary is non-functional ([File:audio] also affected)
Closed, DeclinedPublic

Description

To reproduce:

  1. Go to https://en.wiktionary.org/wiki/ɐ#Pronunciation with Firefox 65 on Linux, without any addons (also reproducible with Chromium 73 on Linux — I have not tested any other browser/OS combinations).
  2. Click on the "Menu" button (in the right part of the audio widget)
  3. Click on the "Download" button (second button from the top in the right part of the menu).

Expected behaviour:

The menu displays a list of downloadable formats.

(See the behaviour in 2019-02, from the Web Archive:
https://web.archive.org/web/20190207011401/https://en.wiktionary.org/wiki/ɐ
)

Actual Behaviour:

  1. The browser navigates to:

https://en.wiktionary.org/wiki/ɐ#

(the anchor link to the top of the page)

  1. The menu does not update

Preliminary investigation

Directly, the issue is with the "audio" template (e.g. <nowiki>{{audio|Near-open_central_unrounded_vowel.ogg}}</nowiki>).

File: links

Under the hood, the wiktionary audio template uses "File:" links (e.g. <nowiki>[[File:Near-open_central_unrounded_vowel.ogg]]</nowiki>), which are also affected by the bug, throughout wikimedia. For instance, see:

https://en.wikipedia.org/w/index.php?title=User:Gephyra/sandbox&oldid=889067205

click on the "Menu" button and then on the "Download" button (as above).

JavaScript console log

Uncaught TypeError: Cannot read property 'getMIMEType' of undefined
    at load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:80
    at Array.forEach (<anonymous>)
    at Object.showDownloadWithSources (load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:80)
    at Object.showDownload (load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:79)
    at Object.showMenuItem (load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:95)
    at HTMLLIElement.<anonymous> (load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:94)
    at HTMLLIElement.dispatch (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=0vmq2pi:69)
    at HTMLLIElement.elemData.handle (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=0vmq2pi:65)
(anonymous) @ load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:80
showDownloadWithSources @ load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:80
showDownload @ load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:79
showMenuItem @ load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:95
(anonymous) @ load.php?debug=false&lang=en&modules=mw.EmbedPlayer&skin=vector&version=1lqeblt:94
dispatch @ load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=0vmq2pi:69
elemData.handle @ load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=0vmq2pi:65

Event Timeline

Restricted Application added subscribers: Liuxinyu970226, jeblad, Aklapper. · View Herald Transcript
Aklapper renamed this task from Download button for audio template, on wiktionary, is non-functional ([File:audio] also affected) to Download button in audio player on Wiktionary is non-functional ([File:audio] also affected).Mar 23 2019, 2:16 PM
Aklapper edited projects, added Kaltura player; removed Internet-Archive.

Thanks for reporting this! Confirming.

For https://en.wiktionary.org/wiki/%C9%90?debug=true I get slightly different output:

TypeError: this is undefined: mw.PlayerControlBuilder.js:2155:13
    showDownloadWithSources https://en.wiktionary.org/w/extensions/TimedMediaHandler/resources/mwembed/EmbedPlayer/skins/mw.PlayerControlBuilder.js?cd8fe:2155
    forEach self-hosted:262
    showDownloadWithSources https://en.wiktionary.org/w/extensions/TimedMediaHandler/resources/mwembed/EmbedPlayer/skins/mw.PlayerControlBuilder.js?cd8fe:2132
    showDownload https://en.wiktionary.org/w/extensions/TimedMediaHandler/resources/mwembed/EmbedPlayer/skins/mw.PlayerControlBuilder.js?cd8fe:2114
    showMenuItem https://en.wiktionary.org/w/extensions/TimedMediaHandler/resources/mwembed/EmbedPlayer/skins/kskin/mw.PlayerSkinKskin.js?d61d9:352
    addMenuBinding https://en.wiktionary.org/w/extensions/TimedMediaHandler/resources/mwembed/EmbedPlayer/skins/kskin/mw.PlayerSkinKskin.js?d61d9:310
Jdforrester-WMF subscribed.

Mass-Declining all open tasks about the Kaltura audio/video player, as that code is no longer used and has been deleted. See T306971 for more information.