Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / suborigins / resources / post-to-parent.php
blobbdb1fa86df2c9bdb92ee194725a318e6fb524b04
1 <?php
2 if ($_GET["suborigin"]) {
3 header("Content-Security-Policy: suborigin " . $_GET["suborigin"]);
5 ?>
6 <!DOCTYPE html>
7 <html>
8 <script>
9 window.secret = 'I am a secret';
10 try {
11 window.parent.secret = 'I am a secret';
12 } catch(e) {
13 // Ignore. The fact that secret hasn't changed in the parent will be
14 // recognized in the parent.
16 window.parent.postMessage('Done', '*');
17 </script>
18 </html>