eval-blocked-report-contains-hash.html (705B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>eval-blocked-and-sends-report</title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src='../../support/logTest.sub.js?logs=["PASS: eval() blocked"]'></script> 8 <script src="../../support/alertAssert.sub.js?alerts=[]"></script> 9 </head> 10 11 <body> 12 <script> 13 try { 14 eval("alert_assert('FAIL')"); 15 } catch (e) { 16 log('PASS: eval() blocked'); 17 } 18 </script> 19 <script async defer src='../../support/checkReport.sub.js?reportField=eval-hash&reportValue=eval-sha256-59RYbtpsgpNknZwNEVJ55z9MzqclgnRZLLIunfpEiL4='></script> 20 <div id="log"></div> 21 </body> 22 23 </html>