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

Unified Diff: chrome/test/data/prerender/service_worker.html

Issue 2575523002: Prerender: Confirm ServiceWorkers are invoked for NoState Prefetch (Closed)
Patch Set: comments Created 3 years, 12 months 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: chrome/test/data/prerender/service_worker.html
diff --git a/chrome/test/data/prerender/service_worker.html b/chrome/test/data/prerender/service_worker.html
new file mode 100644
index 0000000000000000000000000000000000000000..24a6fd602efaf2af4fc05260426c8cd945cd2ea7
--- /dev/null
+++ b/chrome/test/data/prerender/service_worker.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+ <title>ServiceWorker Loader</title>
+ <script type="text/javascript">
+ window.addEventListener('load', function() {
+ navigator.serviceWorker.register('/prerender/service_worker.js').then(
+ function(registration) {
+ console.log('ServiceWorker registered');
+ }).catch(function(err) {
+ console.log(err);
+ });
+ });
+ </script>
+<head>
+<body></body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698