| OLD | NEW |
| 1 <?php | |
| 2 header("Content-Security-Policy: suborigin foobar"); | |
| 3 ?> | |
| 4 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 5 <html> | 2 <html> |
| 6 <head> | 3 <head> |
| 7 <title>Validate presence and value of document.suborigin</title> | 4 <title>Validate presence and value of document.suborigin</title> |
| 8 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 10 </head> | 7 </head> |
| 11 <script> | 8 <script> |
| 12 assert_equals(document.suborigin, "foobar", "document.suborigin should exist whe
n page has a suborigin."); | 9 window.onmessage = function(event) { |
| 13 done(); | 10 assert_equals(event.data, undefined, "document.suborigin should exist when p
age has a suborigin."); |
| 11 done(); |
| 12 } |
| 14 </script> | 13 </script> |
| 14 <iframe src="resources/post-document-to-parent.php?suborigin=foobar"></iframe> |
| 15 </html> | 15 </html> |
| OLD | NEW |