Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / test / data / service_worker / cross_site_xfer_confirm.html
blobb120186371bc9de1473da66bc0d2431902b7f1a4
1 <!DOCTYPE html>
2 <script>
3 // See ServiceWorkerBrowserTest CrossSiteTransfer.
5 var subresourceUrl = 'cross_site_xfer_subresource';
6 var subresourceExpectedText = 'Hello';
8 var xhr = new XMLHttpRequest();
9 xhr.onreadystatechange = function() {
10 if (xhr.readyState == 4) {
11 if (xhr.responseText == subresourceExpectedText)
12 document.title = 'OK_2';
13 else
14 document.title = 'FAIL_2';
17 xhr.open('GET', subresourceUrl);
18 xhr.send();
20 </script>