| OLD | NEW |
| 1 CONSOLE MESSAGE: Synchronous HTTP(S) requests made from the window context canno
t have XMLHttpRequest.responseType set. | |
| 2 CONSOLE MESSAGE: Synchronous HTTP(S) requests made from the window context canno
t have XMLHttpRequest.responseType set. | |
| 3 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. |
| 4 | 2 |
| 5 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
". |
| 6 | 4 |
| 7 | 5 |
| 8 xhr.responseType = 'document'; | 6 xhr.responseType = 'document'; |
| 9 PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessEr
ror: A parameter or an operation was not supported by the underlying object.. | 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.. |
| 10 xhr.responseType = 'document'; | 8 xhr.responseType = 'document'; |
| 11 PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidA
ccessError: A parameter or an operation was not supported by the underlying obje
ct.. | 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.. |
| 12 PASS window.location.protocol is "file:" | 10 PASS window.location.protocol is "file:" |
| 13 xhr.responseType = 'document'; | 11 xhr.responseType = 'document'; |
| 14 xhr.open('GET', window.location.href, false); | 12 xhr.open('GET', window.location.href, false); |
| 15 PASS xhr.responseType is "document" | 13 PASS xhr.responseType is "document" |
| 16 xhr.responseType = 'document'; | 14 xhr.responseType = 'document'; |
| 17 xhr.open('GET', dataUrl, false); | 15 xhr.open('GET', dataUrl, false); |
| 18 PASS xhr.responseType is "document" | 16 PASS xhr.responseType is "document" |
| 19 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
| 20 | 18 |
| 21 TEST COMPLETE | 19 TEST COMPLETE |
| 22 | 20 |
| OLD | NEW |