Page MenuHomePhabricator

WebAssembly .wasm file cannot be loaded, breaks video on Safari & Edge
Closed, ResolvedPublic

Description

Videos on Commons etc fail to play in Safari since this week's ogv.js update, which includes WebAssembly (.wasm) version of the codec modules.

The wasm payload fails with:

Failed to load resource: the server responded with a status of 400 (HTTP/2.0 400)

Example URL: https://commons.wikimedia.org/w/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/binPlayers/ogv.js/ogv-demuxer-webm-wasm.wasm?version=1.5.0-20171109103951-47c6ee5c

returns the text "Invalid file type"

Presumably this is a config issue on web servers.

Event Timeline

Change 392567 had a related patch set uploaded (by Brion VIBBER; owner: Brion VIBBER):
[mediawiki/core@master] Add WebAssembly application/wasm MIME type

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

Change 392575 had a related patch set uploaded (by Brion VIBBER; owner: Brion VIBBER):
[mediawiki/extensions/TimedMediaHandler@master] Disable wasm, use asm.js codec modules for Safari/Edge

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

Change 392643 had a related patch set uploaded (by Brion VIBBER; owner: Brion VIBBER):
[mediawiki/extensions/TimedMediaHandler@wmf/1.31.0-wmf.8] Disable wasm, use asm.js codec modules for Safari/Edge

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

Change 392575 merged by jenkins-bot:
[mediawiki/extensions/TimedMediaHandler@master] Disable wasm, use asm.js codec modules for Safari/Edge

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

Change 392643 merged by jenkins-bot:
[mediawiki/extensions/TimedMediaHandler@wmf/1.31.0-wmf.8] Disable wasm, use asm.js codec modules for Safari/Edge

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

Mentioned in SAL (#wikimedia-operations) [2017-11-21T14:18:42Z] <zfilipin@tin> Synchronized php-1.31.0-wmf.8/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerOgvJs.js: SWAT: [[gerrit:392643|Disable wasm, use asm.js codec modules for Safari/Edge (T181022)]] (duration: 00m 49s)

brooke claimed this task.

Ok, this is fixed for now with the swap back to .js version

Change 392567 merged by jenkins-bot:
[mediawiki/core@master] Add WebAssembly application/wasm MIME type

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