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

Unified Diff: content/test/data/browsing_data/worker_setup.html

Issue 2368923003: Support the Clear-Site-Data header on resource requests (Closed)
Patch Set: Addressed comments, improved the SW test Created 4 years, 2 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: content/test/data/browsing_data/worker_setup.html
diff --git a/content/test/data/browsing_data/worker_setup.html b/content/test/data/browsing_data/worker_setup.html
new file mode 100644
index 0000000000000000000000000000000000000000..2c9c4845a6d8bcc1ed94b762b881ec8923e67141
--- /dev/null
+++ b/content/test/data/browsing_data/worker_setup.html
@@ -0,0 +1,18 @@
+<!-- Testing page used in ClearSiteDataThrottleTest. -->
+
+<html>
+ <head>
+ </head>
+ <body>
+ <img id="some_resource" />
+
+ <script>
+ // Set up a service worker to handle future requests.
+ navigator.serviceWorker.register('/?file=worker.js').then(function() {
+ // Inform the C++ side of this test that the worker is now registered.
+ document.title = 'service worker registered';
+ console.log('Service worker registered.');
falken 2016/10/19 07:14:38 This isn't quite right, the service worker is stil
msramek 2016/10/19 12:20:12 Done. I just left out the catch() part, as the exc
+ });
+ </script>
+ </body>
+</html>
« content/test/data/browsing_data/worker.js ('K') | « content/test/data/browsing_data/worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698