summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/experimental-features/permissions-policy-header-host-wildcard.https.sub.html
blob: 211ca7445df8dbf1be989b361dadaa420fbf54eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<body>
  <script src=/resources/testharness.js></script>
  <script src=/resources/testharnessreport.js></script>
  <script>
  test(function() {
    var wildcard_origin = 'https://*:{{ports[https][0]}}';
    assert_array_equals(
      document.featurePolicy.getAllowlistForFeature('fullscreen'),
      [wildcard_origin]);
    assert_true(document.featurePolicy.allowsFeature('fullscreen'));
  }, 'Test wildcard host policy works as expected');
  </script>
</body>