Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js b/third_party/WebKit/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js |
| index a46fa7b04847fdcd0f8aa4eeb328a225f5d2fec4..dba8725f6fb2071cdebf128ae4b4e3fe54bd4b7b 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js |
| +++ b/third_party/WebKit/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js |
| @@ -102,3 +102,9 @@ addEventListener('notificationclick', function(event) { |
| notification: notificationCopy, |
| action: event.action }); |
| }); |
| + |
| +addEventListener('notificationclose', function(event) { |
| + var notificationCopy = cloneNotification(event.notification); |
| + messagePort.postMessage({ command: 'close', |
| + notification: notificationCopy}); |
|
Peter Beverloo
2016/02/02 23:50:10
micro nit: space before }
Nina
2016/02/03 15:04:23
Done.
|
| +}); |