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

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..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>
+

Powered by Google App Engine
This is Rietveld 408576698