Bug 1329547 - Remove media test checks for Vista: Follow-up: Add back check for Windows to fix bustage. r=RyanVM

This commit is contained in:
Sebastian Hengst 2017-01-09 21:15:15 +01:00
Родитель b492741091
Коммит 0e93a37b4f
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -540,7 +540,8 @@ var gErrorTests = [
// Windows' H.264 decoder cannot handle H.264 streams with resolution
// less than 48x48 pixels. We refuse to play and error on such streams.
if (manifestVideo().canPlayType('video/mp4; codecs="avc1.42E01E"')) {
if (manifestNavigator().userAgent.includes("Windows") &&
manifestVideo().canPlayType('video/mp4; codecs="avc1.42E01E"')) {
gErrorTests = gErrorTests.concat({name: "red-46x48.mp4", type:"video/mp4"},
{name: "red-48x46.mp4", type:"video/mp4"});
}