Bug 1282038 - Follow-up: Ensure unprefixed fullscreen API is enabled. r=me

--HG--
extra : rebase_source : 839c307c4842da7d42ce68e55fb26d85c905980c
This commit is contained in:
Masatoshi Kimura 2016-06-30 19:25:48 +09:00
Родитель 6152d5afcc
Коммит e1c10f93bc
1 изменённых файлов: 7 добавлений и 3 удалений

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

@ -20,9 +20,13 @@
self[msg.fn].apply(null, msg.args);
}
function onLoad() {
// The test file must be loaded into youtube.com domain
// because it needs unprivileged access to fullscreenEnabled.
ifr.src = "https://mochitest.youtube.com" + path;
SpecialPowers.pushPrefEnv({
"set": [["full-screen-api.unprefix.enabled", true]]
}, function() {
// The test file must be loaded into youtube.com domain
// because it needs unprivileged access to fullscreenEnabled.
ifr.src = "https://mochitest.youtube.com" + path;
});
}
</script>
</head>