summaryrefslogtreecommitdiffstats
path: root/layout/generic/test/test_frame_visibility_in_iframe.html
blob: 393b1295525978ae0a105ae11de0be8508391fad (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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test"></pre>
<script>
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv(
  {
    // Set layout.visibility.min-recompute-interval-ms to 0ms so that
    // ScheduleApproximateFrameVisibilityUpdateNow gets called on every frame
    // we flush layout.
    set: [ ["layout.visibility.min-recompute-interval-ms", 0] ],
  },
  () =>
  {
    window.open("frame_visibility_in_iframe.html", "_blank");
  }
);
</script>
</body>
</html>