summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/resources/fetch-request-xhr-sync-iframe.html
blob: 900762ffc6cce5b99822a9e0e938ae015c0fac11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<title>Service Worker: Synchronous XHR is intercepted iframe</title>
<script>
'use strict';

function performSyncXHR(url) {
  var syncXhr = new XMLHttpRequest();
  syncXhr.open('GET', url, false);
  syncXhr.send();

  return syncXhr;
}
</script>