OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>Service Worker: Synchronous XHR doesn't deadlock iframe</title> | |
mike3
2017/05/29 16:14:21
I'll also remove the reference to "blocking" from
| |
3 <script> | |
4 'use strict'; | |
5 | |
6 function performSyncXHR() { | |
7 var url = 'fetch-request-xhr-sync-data.txt?bustcache=' + Date.now(); | |
8 var syncXhr = new XMLHttpRequest(); | |
9 syncXhr.open('GET', url, false); | |
10 syncXhr.send(); | |
11 | |
12 if (syncXhr.responseText != 'hello') { | |
13 throw 'FAIL'; | |
falken
2017/05/29 04:22:15
just for expectation hardening, can you include th
mike3
2017/05/29 16:14:21
Sure. I've refactored this to return the value of
falken
2017/05/30 01:08:41
Good point, I think you're right: my suggestion ma
| |
14 } | |
15 } | |
16 </script> | |
OLD | NEW |