| Index: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
|
| diff --git a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
|
| index b78c9e12f88114e2f1bde04daba085244dcfd752..ff7e9c732ccc0f8109af3a15b7d2628e6280c584 100644
|
| --- a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
|
| +++ b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt
|
| @@ -1,14 +1,12 @@
|
| -CONSOLE MESSAGE: Synchronous HTTP(S) requests made from the window context cannot have XMLHttpRequest.responseType set.
|
| -CONSOLE MESSAGE: Synchronous HTTP(S) requests made from the window context cannot have XMLHttpRequest.responseType set.
|
| This tests that XMLHttpRequest open() disallows synchronous HTTP(S) requests when a non-default responseType is set.
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
| xhr.responseType = 'document';
|
| -PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object..
|
| +PASS xhr.open('GET', 'http://mydomain/', false); threw exception InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': synchronous HTTP requests from a document must not set a response type..
|
| xhr.responseType = 'document';
|
| -PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object..
|
| +PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': synchronous HTTP requests from a document must not set a response type..
|
| PASS window.location.protocol is "file:"
|
| xhr.responseType = 'document';
|
| xhr.open('GET', window.location.href, false);
|
|
|