summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/script-src/worker-set-timeout.sub.html
blob: 7e73626c6f36782b7fde915dec1f79bcef8bde88 (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>
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'self' 'unsafe-eval'; connect-src 'self';">
    <title>worker-set-timeout</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src='../support/testharness-helper.js'></script>
</head>

<body>
    <script>
      assert_worker_is_loaded(
        "./support/worker-with-script-src-none-set-timeout.js",
        "Dedicated worker delivers its own CSP",
        "setTimeout blocked");

      assert_shared_worker_is_loaded(
        "./support/worker-with-script-src-none-set-timeout.js",
        "Shared worker delivers its own CSP",
        "setTimeout blocked");
    </script>
</body>

</html>