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

Unified Diff: content/test/data/service_worker/cross_site_xfer.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.html
diff --git a/content/test/data/service_worker/imports_bust_memcache.html b/content/test/data/service_worker/cross_site_xfer.html
similarity index 79%
copy from content/test/data/service_worker/imports_bust_memcache.html
copy to content/test/data/service_worker/cross_site_xfer.html
index 2fc8af574e3144f735b42bbc4842a8f4c106792c..08a383fbf07faf9fed47a14d20bd645e1801c7cf 100644
--- a/content/test/data/service_worker/imports_bust_memcache.html
+++ b/content/test/data/service_worker/cross_site_xfer.html
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<script>
-// See ServiceWorkerBrowserTest ImportsBustMemcache.
+// See ServiceWorkerBrowserTest CrossSiteTransfer.
// Content-Shell data persists so unregister first to clear old data.
// Register, unregister, then reregister. The browsertest examines the
// state of the scriptcache to ensure the script and import are cached.
-var scope = 'imports_bust_memcache_scope/';
-var script = 'worker_with_one_import.js';
+var scope = 'cross_site_xfer_scope/';
+var script = 'cross_site_xfer.js';
navigator.serviceWorker.getRegistration(scope)
.then(function(registration) {
@@ -27,9 +27,9 @@ navigator.serviceWorker.getRegistration(scope)
})
.then(function(_) {
console.log('second registration done');
- document.title = 'OK'; // Titlewatcher looks for this.
+ document.title = 'OK_1'; // TitleWatcher looks for this.
})
.catch(function(e) {
- document.title = 'FAILED';
+ document.title = 'FAIL_1';
});
</script>

Powered by Google App Engine
This is Rietveld 408576698