| Index: Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl
|
| diff --git a/Source/modules/notifications/NotificationEvent.idl b/Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl
|
| similarity index 54%
|
| copy from Source/modules/notifications/NotificationEvent.idl
|
| copy to Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl
|
| index b089670e6e811fdb6fbba7a0eee7c132989691e7..b2a61e5dbf84558ee4342060c0b1121f1476d710 100644
|
| --- a/Source/modules/notifications/NotificationEvent.idl
|
| +++ b/Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl
|
| @@ -4,11 +4,9 @@
|
|
|
| // https://notifications.spec.whatwg.org/#service-worker-api
|
|
|
| -// FIXME: NotificationEvent should support being constructed from JavaScript.
|
| [
|
| - Exposed=ServiceWorker,
|
| RuntimeEnabled=ServiceWorkerNotifications,
|
| - TypeChecking=Interface,
|
| -] interface NotificationEvent : ExtendableEvent {
|
| - readonly attribute Notification notification;
|
| +] partial interface ServiceWorkerGlobalScope {
|
| + attribute EventHandler onnotificationclick;
|
| + attribute EventHandler onnotificationerror;
|
| };
|
|
|