From-Origin: Support for 'same' and 'same-site' response header, nested frame origin...
[WebKit.git] / LayoutTests / http / tests / from-origin / sandboxed-sub-frame-from-origin-same-blocked.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src="/js-test-resources/js-test.js"></script>
5     <script>
6         description("Tests that a cross-origin document load fails if the server blocks cross-origin loads with a 'From-Origin: same' response header and the iframe is sandboxed.");
7         jsTestIsAsync = true;
8         testRunner.dumpChildFramesAsText();
9
10         function iframeLoadError() {
11             testPassed("Timeout fired without iframe onload event fired.");
12             finishJSTest();
13         }
14
15         function iframeLoadSuccess() {
16             testFailed("Document load succeeded.");
17             finishJSTest();
18         }
19
20         setTimeout("iframeLoadError()", 500);
21     </script>
22 </head>
23 <body>
24 <iframe src="http://localhost:8000/from-origin/resources/iframe.php?fromOrigin=same" sandbox="" onload="iframeLoadSuccess()"></iframe>
25 </body>
26 </html>