| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 | 3 |
| 4 <head> | 4 <head> |
| 5 <!-- Programmatically converted from a WebKit Reftest, please forgive result
ing idiosyncracies.--> | 5 <!-- Programmatically converted from a WebKit Reftest, please forgive result
ing idiosyncracies.--> |
| 6 <title>child-src-blocked</title> | 6 <title>child-src-blocked</title> |
| 7 <script src="/resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="/resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src='../support/logTest.sub.js?logs=["PASS IFrame %231 generated a l
oad event."]'></script> | 9 <script src='../support/logTest.sub.js?logs=["PASS IFrame %231 generated a l
oad event."]'></script> |
| 10 <script> | 10 <script> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 function loadEvent() { | 47 function loadEvent() { |
| 48 loads++; | 48 loads++; |
| 49 log("PASS " + "IFrame #" + loads + " generated a load event."); | 49 log("PASS " + "IFrame #" + loads + " generated a load event."); |
| 50 } | 50 } |
| 51 | 51 |
| 52 </script> | 52 </script> |
| 53 </head> | 53 </head> |
| 54 | 54 |
| 55 <body> | 55 <body> |
| 56 <iframe src="/content-security-policy/blink-contrib/resources/postmessage-fa
il.html" onload="loadEvent()" onerror="log('FAIL')"></iframe> | 56 <iframe src="/content-security-policy/support/postmessage-fail.html" onload=
"loadEvent()" onerror="log('FAIL')"></iframe> |
| 57 <div id="log"></div> | 57 <div id="log"></div> |
| 58 <script async defer src="../support/checkReport.sub.js?reportExists=true&
;reportField=violated-directive&reportValue=child-src%20'none'"></
script> | 58 <script async defer src="../support/checkReport.sub.js?reportExists=true&
;reportField=violated-directive&reportValue=frame-src%20'none'"></
script> |
| 59 </body> | 59 </body> |
| 60 | 60 |
| 61 </html> | 61 </html> |
| OLD | NEW |