summaryrefslogtreecommitdiffstats
path: root/dom/html/test/file_fullscreen-unprefix-disabled.html
blob: 59737ec1d8366b473fdfa5747eac7050618f5f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Test for Bug 1268749</title>
  <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body>
<script>

var gWindow = null;

function begin() {
  SpecialPowers.pushPrefEnv({
    "set": [["full-screen-api.unprefix.enabled", false]]
  }, () => {
    gWindow = window.open("file_fullscreen-unprefix-disabled-inner.html",
                          "", "width=500,height=500");
    gWindow.addEventListener("load", () => {
      gWindow.focus();
      SimpleTest.waitForFocus(() => gWindow.begin(), gWindow);
    });
  });
}

function finish() {
  gWindow.close();
  SpecialPowers.popPrefEnv(opener.nextTest);
}

</script>
</body>
</html>