Index: content/test/data/service_worker/cross_site_xfer_confirm.html |
diff --git a/content/test/data/service_worker/cross_site_xfer_confirm.html b/content/test/data/service_worker/cross_site_xfer_confirm.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b120186371bc9de1473da66bc0d2431902b7f1a4 |
--- /dev/null |
+++ b/content/test/data/service_worker/cross_site_xfer_confirm.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script> |
+// See ServiceWorkerBrowserTest CrossSiteTransfer. |
+ |
+var subresourceUrl = 'cross_site_xfer_subresource'; |
+var subresourceExpectedText = 'Hello'; |
+ |
+var xhr = new XMLHttpRequest(); |
+xhr.onreadystatechange = function() { |
+ if (xhr.readyState == 4) { |
+ if (xhr.responseText == subresourceExpectedText) |
+ document.title = 'OK_2'; |
+ else |
+ document.title = 'FAIL_2'; |
+ } |
+} |
+xhr.open('GET', subresourceUrl); |
+xhr.send(); |
+ |
+</script> |
+ |