зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1282038 - Follow-up: Ensure unprefixed fullscreen API is enabled. r=me
--HG-- extra : rebase_source : 839c307c4842da7d42ce68e55fb26d85c905980c
This commit is contained in:
Родитель
6152d5afcc
Коммит
e1c10f93bc
|
@ -20,9 +20,13 @@
|
||||||
self[msg.fn].apply(null, msg.args);
|
self[msg.fn].apply(null, msg.args);
|
||||||
}
|
}
|
||||||
function onLoad() {
|
function onLoad() {
|
||||||
// The test file must be loaded into youtube.com domain
|
SpecialPowers.pushPrefEnv({
|
||||||
// because it needs unprivileged access to fullscreenEnabled.
|
"set": [["full-screen-api.unprefix.enabled", true]]
|
||||||
ifr.src = "https://mochitest.youtube.com" + path;
|
}, 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>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче