| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-claim-worker.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-claim-worker.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-claim-worker.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bd75fc1345f8499cedbae120976eeeb3513885c6
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-claim-worker.php
|
| @@ -0,0 +1,21 @@
|
| +<?php
|
| +header("Cache-Control: no-cache, must-revalidate");
|
| +header("Pragma: no-cache");
|
| +header('Content-Type:application/javascript');
|
| +
|
| +echo '// ', microtime();
|
| +?>
|
| +
|
| +// This no-op fetch handler is necessary to bypass explicitly the no fetch
|
| +// handler optimization by which this service worker script can be skipped.
|
| +addEventListener('fetch', event => {
|
| + return;
|
| + });
|
| +
|
| +addEventListener('install', event => {
|
| + event.waitUntil(self.skipWaiting());
|
| + });
|
| +
|
| +addEventListener('activate', event => {
|
| + event.waitUntil(self.clients.claim());
|
| + });
|
|
|