mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 951100 - a.setAttribute("autoplay", false) doesn't work as expected as a.autoplay = false. r=cpearce
This commit is contained in:
parent
3cd73fb7c3
commit
3bae414e05
@ -25,11 +25,11 @@ var manager = new MediaTestManager;
|
||||
var player = new Audio();
|
||||
|
||||
function startTest(test, token) {
|
||||
if (!player.canPlayType(test.type))
|
||||
if (!player.canPlayType(test.type)) {
|
||||
return;
|
||||
}
|
||||
manager.started(token);
|
||||
var a = new Audio(test.name);
|
||||
a.setAttribute("autoplay", false);
|
||||
a.addEventListener("canplaythrough",
|
||||
function(e){ e.target.play(); },
|
||||
false);
|
||||
|
Loading…
Reference in New Issue
Block a user