| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7612bab9943e07a4559fee01900db901ec6ea58e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js
|
| @@ -0,0 +1,6 @@
|
| +self.addEventListener('fetch', evt => {
|
| + // Retruns an empty response to resolve with_iframe() in the test page.
|
| + evt.respondWith(new Response(''));
|
| + // Keeps this event alive.
|
| + evt.waitUntil(new Promise(function() {}));
|
| + });
|
|
|