| OLD | NEW |
| 1 This tests that XMLHttpRequest open() disallows synchronous HTTP(S) requests whe
n a non-default responseType is set. | 1 This tests that XMLHttpRequest open() disallows synchronous HTTP(S) requests whe
n a non-default responseType is set. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 xhr.responseType = 'document'; | 6 xhr.responseType = 'document'; |
| 7 PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessEr
ror: Failed to execute 'open' on 'XMLHttpRequest': synchronous HTTP requests fro
m a document must not set a response type.. | 7 PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessEr
ror: Failed to execute 'open' on 'XMLHttpRequest': Synchronous HTTP requests fro
m a document must not set a response type.. |
| 8 xhr.responseType = 'document'; | 8 xhr.responseType = 'document'; |
| 9 PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidA
ccessError: Failed to execute 'open' on 'XMLHttpRequest': synchronous HTTP reque
sts from a document must not set a response type.. | 9 PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidA
ccessError: Failed to execute 'open' on 'XMLHttpRequest': Synchronous HTTP reque
sts from a document must not set a response type.. |
| 10 PASS window.location.protocol is "file:" | 10 PASS window.location.protocol is "file:" |
| 11 xhr.responseType = 'document'; | 11 xhr.responseType = 'document'; |
| 12 xhr.open('GET', window.location.href, false); | 12 xhr.open('GET', window.location.href, false); |
| 13 PASS xhr.responseType is "document" | 13 PASS xhr.responseType is "document" |
| 14 xhr.responseType = 'document'; | 14 xhr.responseType = 'document'; |
| 15 xhr.open('GET', dataUrl, false); | 15 xhr.open('GET', dataUrl, false); |
| 16 PASS xhr.responseType is "document" | 16 PASS xhr.responseType is "document" |
| 17 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
| 18 | 18 |
| 19 TEST COMPLETE | 19 TEST COMPLETE |
| 20 | 20 |
| OLD | NEW |