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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/child-src/child-src-conflicting-frame-src.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 <head> 3 <head>
4 <title>child-src-blocked</title> 4 <title>child-src-blocked</title>
5 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 <script src='../support/logTest.sub.js?logs=["PASS IFrame %231 generated a l oad event."]'></script> 7 <script src='../support/logTest.sub.js?logs=["PASS IFrame %231 generated a l oad event."]'></script>
8 <script> 8 <script>
9 window.addEventListener("message", function(event) { 9 window.addEventListener("message", function(event) {
10 alert_assert(event.data); 10 alert_assert(event.data);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&amp ;reportField=violated-directive&amp;reportValue=frame-src%20&apos;none&apos;"></ script> 58 <script async defer src="../support/checkReport.sub.js?reportExists=true&amp ;reportField=violated-directive&amp;reportValue=frame-src%20&apos;none&apos;"></ script>
59 </body> 59 </body>
60 60
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698