Index: modules/push_messaging/PushEvent.idl |
diff --git a/modules/push_messaging/PushEvent.idl b/modules/push_messaging/PushEvent.idl |
index a6a03ff8d7895445e68bfcec475fc5db9afcf71d..aa6d11692bf0d5b4ab8e4874b2019729ed927336 100644 |
--- a/modules/push_messaging/PushEvent.idl |
+++ b/modules/push_messaging/PushEvent.idl |
@@ -2,9 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// https://w3c.github.io/push-api/#idl-def-PushEvent |
+ |
[ |
- EventConstructor, |
+ Constructor(DOMString type, optional PushEventInit eventInitDict), |
+ Exposed=ServiceWorker, |
RuntimeEnabled=PushMessaging, |
-] interface PushEvent : Event { |
- [InitializedByEventConstructor] readonly attribute DOMString data; |
+] interface PushEvent : ExtendableEvent { |
+ [RuntimeEnabled=PushMessagingData] readonly attribute PushMessageData data; |
}; |