Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / resources / access-control-sandboxed-iframe-allow-iframe.html
blob383e7cbf4f93d6fc56e1937c0c277b0c8172d9d5
1 <html>
2 <body>
3 <pre id='console'></pre>
4 <script type="text/javascript">
6 document.getElementById('console').innerHTML = (function() {
7 var xhr = new XMLHttpRequest;
9 try {
10 xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/access-control-sandboxed-iframe-allow.cgi", false);
11 } catch(e) {
12 return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allowed in 'open'. [" + e.message + "].";
15 try {
16 xhr.send();
17 } catch(e) {
18 return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allowed in 'send'. [" + e.message + "].";
21 return xhr.responseText;
22 })();
23 </script>
24 </body>
25 </html>