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

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, formatted. Created 3 years, 6 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
« no previous file with comments | « content/test/data/browsing_data/worker.js ('k') | content/test/fuzzer/clear_site_data_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..40059230ece85e7254f036b43de7874c5c56f47f
--- /dev/null
+++ b/content/test/data/browsing_data/worker_setup.html
@@ -0,0 +1,21 @@
+<!-- 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(() => navigator.serviceWorker.ready)
+ .then(() => {
+ // Inform the C++ side of this test that the worker
+ // is now registered.
+ document.title = 'service worker is ready';
+ console.log('Service worker is ready.');
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « content/test/data/browsing_data/worker.js ('k') | content/test/fuzzer/clear_site_data_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698