frame-src-about-blank-allowed-by-scheme.sub.html (919B)
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.--> 6 <meta http-equiv="Content-Security-Policy" content="frame-src about:; script-src 'self' 'unsafe-inline'; connect-src 'self';"> 7 <title>frame-src-about-blank-allowed-by-scheme</title> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src='../support/logTest.sub.js?logs=["PASS"]'></script> 11 <script src="../support/alertAssert.sub.js?alerts=[]"></script> 12 13 <p>This frame should not be blocked by Content-Security-Policy. 14 </p> 15 <script> 16 window.addEventListener('securitypolicyviolation', function(e) { 17 log("Fail"); 18 }); 19 </script> 20 21 <iframe src="about:blank"></iframe> 22 <div id="log"></div> 23 <script> 24 log("PASS"); 25 </script> 26 </body> 27 28 </html>