Andrew Top | 61a8495 | 2019-04-30 15:07:33 -0700 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | |
| 4 | <head> |
| 5 | <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.--> |
| 6 | <title>style-blocked</title> |
| 7 | <script src="/resources/testharness.js"></script> |
| 8 | <script src="/resources/testharnessreport.js"></script> |
| 9 | <script src='../support/logTest.sub.js?logs=["PASS"]'></script> |
| 10 | <script src="../support/alertAssert.sub.js?alerts=[]"></script> |
| 11 | <!-- enforcing policy: |
| 12 | style-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-inline'; connect-src 'self'; |
| 13 | --> |
| 14 | <link rel="stylesheet" href="resources/blue.css"> |
| 15 | </head> |
| 16 | |
| 17 | <body> |
| 18 | <script> |
| 19 | log(document.styleSheets.length > 0 ? 'FAIL' : 'PASS'); |
| 20 | |
| 21 | </script> |
| 22 | <div id="log"></div> |
| 23 | <script async defer src="../support/checkReport.sub.js?reportExists=true&reportField=violated-directive&reportValue=style-src%20'none'"></script> |
| 24 | </body> |
| 25 | |
| 26 | </html> |