| Index: modules/push_messaging/PushSubscription.idl
|
| diff --git a/modules/push_messaging/PushSubscription.idl b/modules/push_messaging/PushSubscription.idl
|
| index 0575d1f5af6befeb84b74f05688ed0872c6e3bbf..469bd8c0fa5f35eba73065c5738edc637f024cf0 100644
|
| --- a/modules/push_messaging/PushSubscription.idl
|
| +++ b/modules/push_messaging/PushSubscription.idl
|
| @@ -4,13 +4,20 @@
|
|
|
| // https://w3c.github.io/push-api/#pushsubscription-interface
|
|
|
| +enum PushEncryptionKeyName {
|
| + "p256dh",
|
| + "auth"
|
| +};
|
| +
|
| [
|
| Exposed=(Window,ServiceWorker),
|
| GarbageCollected,
|
| RuntimeEnabled=PushMessaging,
|
| ] interface PushSubscription {
|
| readonly attribute USVString endpoint;
|
| +
|
| + [RuntimeEnabled=PushMessagingData] ArrayBuffer? getKey(PushEncryptionKeyName name);
|
| [CallWith=ScriptState] Promise<boolean> unsubscribe();
|
|
|
| - serializer = { attribute };
|
| + serializer;
|
| };
|
|
|