2 <p>Test that script elements that are fetched with CORS enabled and conditionally, pass the expected access controls.
</p>
5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
12 document
.querySelector("pre").innerHTML
= msg
;
17 // Called by the iframe upon completing the fetch of its script.
18 if (ok
&& count
++ < 2) {
19 document
.querySelector("iframe").contentWindow
.location
.reload();
22 log((ok
? "PASS" : "FAIL") + ": crossorigin script repeatedly and conditionally loaded.");
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
27 <iframe src=
"resources/iframe-crossorigin-script.html""></iframe>