OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <pre> | 3 <pre> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 | 7 |
| 8 if (window.internals) |
| 9 internals.settings.setTreatIPAddressAsDomain(true); |
| 10 |
8 document.domain = '0.0.1'; | 11 document.domain = '0.0.1'; |
9 | 12 |
10 document.write('Waiting...\n'); | 13 document.write('Waiting...\n'); |
11 var xhr = new XMLHttpRequest(); | 14 var xhr = new XMLHttpRequest(); |
12 xhr.open('POST', 'resources/post-echo.cgi', false); | 15 xhr.open('POST', 'resources/post-echo.cgi', false); |
13 xhr.send('PASS: XMLHttpRequest allowed with document.domain set.\n'); | 16 xhr.send('PASS: XMLHttpRequest allowed with document.domain set.\n'); |
14 document.write(xhr.responseText); | 17 document.write(xhr.responseText); |
15 </script> | 18 </script> |
16 </pre> | 19 </pre> |
17 </body> | 20 </body> |
18 </html> | 21 </html> |
OLD | NEW |