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