Bug 1396232 - enable prefs needed for orientation lock test. r=ralin

Also, use |run-if| instead of |skip-if| to filter the test.

MozReview-Commit-ID: 5NUoSoRzqMC

--HG--
extra : rebase_source : c50eb0cf377d02456089382108a49658ea6930b7
This commit is contained in:
John Lin 2017-09-04 16:00:55 +08:00
Родитель 28c1327c42
Коммит ed6fa8ffe5
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -50,4 +50,4 @@ skip-if = toolkit == 'android'
[test_bug898940.html]
[test_videocontrols_error.html]
[test_videocontrols_orientation.html]
skip-if = toolkit != 'android'
run-if = toolkit == 'android'

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

@ -21,7 +21,9 @@ var video = document.getElementById("video");
let onLoaded = event => {
SpecialPowers.pushPrefEnv(
{"set": [["full-screen-api.allow-trusted-requests-only", false]]},
{"set": [["full-screen-api.allow-trusted-requests-only", false],
["full-screen-api.unprefix.enabled", true],
["media.videocontrols.lock-video-orientation", true]]},
startMediaLoad);
}
window.addEventListener("load", onLoaded);