| 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-cross-origin-load</title> | 6 <title>child-src-cross-origin-load</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.","PASS IFrame %232 generated a load event.","PASS IFrame %233 generat
ed a load event."]'></script> | 9 <script src='../support/logTest.sub.js?logs=["PASS IFrame %231 generated a l
oad event.","PASS IFrame %232 generated a load event.","PASS IFrame %233 generat
ed a load event."]'></script> |
| 10 <script> | 10 <script> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 loads++; | 51 loads++; |
| 52 log("PASS " + "IFrame #" + loads + " generated a load event."); | 52 log("PASS " + "IFrame #" + loads + " generated a load event."); |
| 53 if (loads == 3) | 53 if (loads == 3) |
| 54 log("TEST COMPLETE"); | 54 log("TEST COMPLETE"); |
| 55 } | 55 } |
| 56 | 56 |
| 57 </script> | 57 </script> |
| 58 </head> | 58 </head> |
| 59 | 59 |
| 60 <body> | 60 <body> |
| 61 <iframe src="/content-security-policy/blink-contrib/resources/postmessage-pa
ss.html" onload="loadEvent()"></iframe> | 61 <iframe src="/content-security-policy/support/postmessage-pass.html" onload=
"loadEvent()"></iframe> |
| 62 <iframe src="http://www1.{{host}}:{{ports[http][0]}}/content-security-policy
/blink-contrib/resources/postmessage-pass.html" onload="loadEvent()"></iframe> | 62 <iframe src="http://{{domains[www1]}}:{{ports[http][0]}}/content-security-po
licy/support/postmessage-pass.html" onload="loadEvent()"></iframe> |
| 63 <iframe src="http://www2.{{host}}:{{ports[http][0]}}/content-security-policy
/blink-contrib/resources/postmessage-fail.html" onload="loadEvent()" onerror="lo
g('FAIL')"></iframe> | 63 <iframe src="http://{{domains[www2]}}:{{ports[http][0]}}/content-security-po
licy/support/postmessage-fail.html" onload="loadEvent()" onerror="log('FAIL')"><
/iframe> |
| 64 <div id="log"></div> | 64 <div id="log"></div> |
| 65 <script async defer src="../support/checkReport.sub.js?reportExists=true&
;reportField=violated-directive&reportValue=child-src%20'self'"></
script> | 65 <script async defer src="../support/checkReport.sub.js?reportExists=true&
;reportField=violated-directive&reportValue=frame-src%20'self'"></
script> |
| 66 </body> | 66 </body> |
| 67 | 67 |
| 68 </html> | 68 </html> |
| OLD | NEW |