4 <script src=
"../../resources/js-test.js"></script>
6 if ('internals' in window
) {
7 window
.internals
.settings
.setSyncXHRInDocumentsEnabled(false);
9 document
.write('This test depends on the syncXHRInDocumentsEnabled setting being false, so run in DumpRenderTree or manually enable it');
12 description('This tests that synchronous XMLHttpRequests fail when they are disabled for documents.');
13 var xhr
= new XMLHttpRequest();
14 shouldThrow('xhr.open("GET", "http://mydomain/", false)');
18 <div id=
"description"></div>
19 <div id=
"console"></div>