1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
content / test / data / browsing_data / worker_setup.html [blame]
<!-- 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>