mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
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:
parent
28c1327c42
commit
ed6fa8ffe5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user