| Index: LayoutTests/http/tests/serviceworker/resources/fetch-worker.js
|
| diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-worker.js b/LayoutTests/http/tests/serviceworker/resources/fetch-worker.js
|
| index b086a961b7b1a16add8165aecd62e0ef1579296a..7f5d401c3f0a3e618eefac237f462b0fb9ee5b2c 100644
|
| --- a/LayoutTests/http/tests/serviceworker/resources/fetch-worker.js
|
| +++ b/LayoutTests/http/tests/serviceworker/resources/fetch-worker.js
|
| @@ -15,19 +15,12 @@
|
| ];
|
|
|
| function doNextFetchTest(port) {
|
| -
|
| - function runInfiniteFetchLoop() {
|
| - fetch('dummy.html')
|
| - .then(function() { runInfiniteFetchLoop(); });
|
| - }
|
| -
|
| if (testTargets.length == 0) {
|
| - // Destroying the execution context while fetch is happening
|
| - // should not cause a crash.
|
| - runInfiniteFetchLoop();
|
| -
|
| - port.postMessage('quit');
|
| - return;
|
| + port.postMessage('quit');
|
| + // Destroying the execution context while fetch is happening should not cause a crash.
|
| + fetch('dummy.html').then(function() {}).catch(function() {});
|
| + self.close();
|
| + return;
|
| }
|
| var target = testTargets.shift();
|
| fetch(target)
|
|
|