summaryrefslogtreecommitdiffstats
path: root/dom/security/featurepolicy/test/mochitest/test_initial_aboutblank.html
blob: 79d1bfd4c45f2805f017920b1e2450e507524819 (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
<!DOCTYPE HTML>
<html>
<head>
  <title>Test feature policy - Initial about:blank</title>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe name="parentIframe" allow="fullscreen 'none'" srcdoc="
  <iframe name='regular'></iframe>
  <iframe name='transient'></iframe>
  <script>transient.stop()</script>
"></iframe>

<script type="text/javascript">
add_task(function testAboutBlank() {
  isDeeply(frames[0].transient.document.featurePolicy.allowedFeatures(),
           frames[0].document.featurePolicy.allowedFeatures(),
           "check allowed feature list for initial about:blank");
  isDeeply(frames[0].regular.document.featurePolicy.allowedFeatures(),
           frames[0].document.featurePolicy.allowedFeatures(),
           "check allowed feature list for real load about:blank");
});
</script>
</body>
</html>