| Index: LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php
|
| diff --git a/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php b/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bdb1fa86df2c9bdb92ee194725a318e6fb524b04
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php
|
| @@ -0,0 +1,18 @@
|
| +<?php
|
| +if ($_GET["suborigin"]) {
|
| + header("Content-Security-Policy: suborigin " . $_GET["suborigin"]);
|
| +}
|
| +?>
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<script>
|
| +window.secret = 'I am a secret';
|
| +try {
|
| + window.parent.secret = 'I am a secret';
|
| +} catch(e) {
|
| + // Ignore. The fact that secret hasn't changed in the parent will be
|
| + // recognized in the parent.
|
| +}
|
| +window.parent.postMessage('Done', '*');
|
| +</script>
|
| +</html>
|
|
|