| Index: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a693810ba26de4106c6f5858abdb23b824126bf
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<title>Worker served with Referrer-Policy header</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script src="/resources/get-host-info.js?pipe=sub"></script>
|
| +<script>
|
| +async_test(function(t) {
|
| + var worker = new SharedWorker('resources/worker.php');
|
| + worker.port.onmessage = t.step_func(function (e) {
|
| + assert_equals(e.data, get_host_info()['HTTP_ORIGIN'] + '/');
|
| + t.done();
|
| + });
|
| + worker.port.start();
|
| + }, 'Worker script served with a Referrer-Policy header');
|
| +</script>
|
|
|