Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/child-src/child-src-cross-origin-load.sub.html

Issue 2803943007: Un-skipped wpt csp child-src tests (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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&amp ;reportField=violated-directive&amp;reportValue=child-src%20&apos;self&apos;"></ script> 65 <script async defer src="../support/checkReport.sub.js?reportExists=true&amp ;reportField=violated-directive&amp;reportValue=frame-src%20&apos;self&apos;"></ script>
66 </body> 66 </body>
67 67
68 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698