blob: f45d48bc85a4ab77539bdc2c52683ac083ab9f53 [file] [log] [blame]
<html>
<body>
<pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.internals)
window.internals.settings.setTreatIPAddressAsDomain(true);
document.domain = '0.0.1';
document.write('Waiting...\n');
var xhr = new XMLHttpRequest();
xhr.open('POST', 'resources/post-echo.cgi', false);
xhr.send('PASS: XMLHttpRequest allowed with document.domain set.\n');
document.write(xhr.responseText);
</script>
</pre>
</body>
</html>