зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1185747 part 1 - Use pref/meta-viewport tag instead of DOMWindowUtils to set the CSS viewport for mochitests. r=tn
--HG-- extra : commitid : 4z3MImH4xGx
This commit is contained in:
Родитель
c6b81000b4
Коммит
e5bf0242d2
|
@ -6,11 +6,6 @@
|
|||
<script class="testbody" type="text/javascript">
|
||||
function runSubTest()
|
||||
{
|
||||
// Firefox doesn't support the metaviewport tag on desktop, so we force
|
||||
// css viewport here using nsIDomWindowUtils
|
||||
var cwu = SpecialPowers.getDOMWindowUtils(window);
|
||||
cwu.setCSSViewport(320, 320);
|
||||
|
||||
var oldWidth = window.innerWidth;
|
||||
var oldHeight = window.innerHeight;
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
}
|
||||
|
||||
function startTest() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false]]}, runTest);
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false],
|
||||
["dom.meta-viewport.enabled", true ]]}, runTest);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче