| Index: LayoutTests/http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-origin-null-iframe.html
|
| diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-origin-null-iframe.html b/LayoutTests/http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-origin-null-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..faff98baf6d2fe60a4a1c79ef638cd52bb79bf65
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-origin-null-iframe.html
|
| @@ -0,0 +1,25 @@
|
| +<html>
|
| +<body>
|
| +<pre id='console'></pre>
|
| +<script type="text/javascript">
|
| +
|
| +document.getElementById('console').innerHTML = (function() {
|
| + var xhr = new XMLHttpRequest;
|
| +
|
| + try {
|
| + xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-origin-null.cgi", false);
|
| + } catch(e) {
|
| + return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allowed in 'open'. [" + e.message + "].";
|
| + }
|
| +
|
| + try {
|
| + xhr.send();
|
| + } catch(e) {
|
| + return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allowed in 'send'. [" + e.message + "].";
|
| + }
|
| +
|
| + return xhr.responseText;
|
| +})();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|