| Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
|
| diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
|
| index 5ea32c878bff1c3b2c6fc8cb478c0b979e275bc6..a090d783b36d3b03a6d9af8b509f248fbf76af07 100644
|
| --- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
|
| +++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
|
| @@ -81,5 +81,16 @@ postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed");
|
| alert('PASS');
|
|
|
| <?php
|
| +} else if ($_GET["type"] == "report-referrer") {
|
| +?>
|
| +
|
| +var xhr = new XMLHttpRequest;
|
| +xhr.open("GET", "http://127.0.0.1:8000/security/resources/echo-referrer-header.php", true);
|
| +xhr.onload = function () {
|
| + postMessage(this.responseText);
|
| +};
|
| +xhr.send();
|
| +
|
| +<?php
|
| }
|
| ?>
|
|
|