Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-xhr-sync-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-xhr-sync-iframe.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-xhr-sync-iframe.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..657596e3a5cf30fda2959d46d7c62e4e7840b34c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-xhr-sync-iframe.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<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
|
+<script> |
+'use strict'; |
+ |
+function performSyncXHR() { |
+ var url = 'fetch-request-xhr-sync-data.txt?bustcache=' + Date.now(); |
+ var syncXhr = new XMLHttpRequest(); |
+ syncXhr.open('GET', url, false); |
+ syncXhr.send(); |
+ |
+ if (syncXhr.responseText != 'hello') { |
+ 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
|
+ } |
+} |
+</script> |