Skip to content
Commit c1d7ea73 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Fixup new Audio() constructor and apply autoplay prevention evasion to document.createElement

The arguments apparently weren't properly forwarded to the constructor,
breaking e.g. new Audio("foo") calls. This uses the much nicer spread syntax introduced in ES6.
Also, document.createElement("audio") is affected in the same way as new Audio()
The evasion is now only done when the player actually starts playing,
not immediately when it is created, since we only care about playing players.

BUG: 411742

Differential Revision: https://phabricator.kde.org/D24870
parent 260d158c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment