OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>plaintest test with postMessage</p> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 var t = async_test("Do not parse plain text as HTML"); |
| 7 window.addEventListener('message', function() { |
| 8 assert_unreached("Child should not be executable"); |
| 9 }); |
| 10 var iframe = document.createElement('iframe'); |
| 11 iframe.src = "data:text/plain,<script>parent.postMessage('Hello','" + location.o
rigin+"');<\/script>"; |
| 12 iframe.onload = () => t.done(); |
| 13 document.body.appendChild(iframe); |
| 14 </script> |
OLD | NEW |