| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-worker.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-worker.js
|
| index 6cee5365428d492f574a15b248a97a18d5477440..b4eb5a582f0aab2c8e21faa864c3df038406e423 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-worker.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-worker.js
|
| @@ -16,8 +16,8 @@ self.addEventListener('activate', function(e) {
|
| });
|
|
|
| self.addEventListener('message', function(e) {
|
| - self.registration.unregister()
|
| + e.waitUntil(self.registration.unregister()
|
| .then(function(result) {
|
| e.data.port.postMessage({result: result});
|
| - });
|
| + }));
|
| });
|
|
|