Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: content/test/data/service_worker/cross_site_xfer_confirm.html

Issue 702843004: Transfer serviceworker state during cross site navigations too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..892cb50ec2a8e19d10b426c2b7505c516e39c229
--- /dev/null
+++ b/content/test/data/service_worker/cross_site_xfer_confirm.html
@@ -0,0 +1,22 @@
+<!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>
+
falken 2014/12/08 07:32:16 nit: extra empty lines
michaeln 2014/12/08 23:56:44 Done.
+

Powered by Google App Engine
This is Rietveld 408576698