Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / sync-xhr-doesnt-deadlock-iframe.html
blob0fa72911624be9ce7cec49954e6d8c3a9fce1cef
1 <!DOCTYPE html>
2 <title>Service Worker: SyncXHR doesn't deadlock iframe</title>
3 <script>
4 function performSyncXHR() {
5 var url = 'sync-xhr-doesnt-deadlock.data?bustcache=' + Date.now();
6 var syncXhr = new XMLHttpRequest();
7 syncXhr.open("GET", url, false);
8 syncXhr.send();
9 if (syncXhr.responseText != 'hello')
10 throw 'FAIL';
12 </script>