| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
|
| index 0db803c7c4e86fe8db7713046536e7ca174e24c7..8bcec28afc765c474bdf644168936508d255d579 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
|
| @@ -95,11 +95,11 @@ var TESTS = [
|
|
|
| self.onmessage = function(e) {
|
| if (e.data == 'start') {
|
| - initialize().then(runNextTestOrQuit);
|
| + e.waitUntil(initialize().then(runNextTestOrQuit));
|
| } else {
|
| - initialize().then(function() {
|
| + e.waitUntil(initialize().then(function() {
|
| self.postMessage('received unexpected message');
|
| self.postMessage('quit');
|
| - });
|
| + }));
|
| }
|
| };
|
|
|