| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <meta http-equiv="Content-Security-Policy" content="script-src http://localhost:
8000"> |
| 5 </script> | 5 <link id="target" rel="import" href="http://localhost:8000/htmlimports/resources
/child-having-domain-policy.cgi"> |
| 6 <link id="target" rel="import" href="resources/child-having-domain-policy.html"> | |
| 7 <script src="/js-test-resources/js-test.js"></script> | |
| 8 </head> | 6 </head> |
| 9 <body> | 7 <body> |
| 10 <pre id="result"></pre> | 8 <script src="http://localhost:8000/htmlimports/resources/csp-import-block-but-do
main.js"></script> |
| 11 <script> | |
| 12 shouldBe("document.inlineScriptHasRun", "undefined"); | |
| 13 shouldBe("document.externalScriptHasRun", "undefined"); | |
| 14 shouldBeTrue("document.corsExternalScriptHasRun"); | |
| 15 shouldBe("document.evalFromInlineHasRun", "undefined"); | |
| 16 shouldBe("document.evalFromExternalHasRun", "undefined"); | |
| 17 shouldBe("document.evalFromCorsExternalHasRun", "undefined"); | |
| 18 </script> | |
| 19 </body> | 9 </body> |
| 20 </html> | 10 </html> |
| OLD | NEW |