@@ -17,17 +17,17 @@ interface PushManager {
17
17
Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options);
18
18
};
19
19
20
- dictionary PushSubscriptionOptionsInit {
21
- boolean userVisibleOnly = false;
22
- (BufferSource or DOMString)? applicationServerKey = null;
23
- };
24
-
25
20
[Exposed=(Window,Worker), SecureContext]
26
21
interface PushSubscriptionOptions {
27
22
readonly attribute boolean userVisibleOnly;
28
23
[SameObject] readonly attribute ArrayBuffer? applicationServerKey;
29
24
};
30
25
26
+ dictionary PushSubscriptionOptionsInit {
27
+ boolean userVisibleOnly = false;
28
+ (BufferSource or DOMString)? applicationServerKey = null;
29
+ };
30
+
31
31
[Exposed=(Window,Worker), SecureContext]
32
32
interface PushSubscription {
33
33
readonly attribute USVString endpoint;
@@ -64,20 +64,15 @@ partial interface ServiceWorkerGlobalScope {
64
64
attribute EventHandler onpushsubscriptionchange;
65
65
};
66
66
67
- typedef (BufferSource or USVString) PushMessageDataInit;
68
-
69
- dictionary PushEventInit : ExtendableEventInit {
70
- PushMessageDataInit data;
71
- };
72
-
73
67
[Constructor(DOMString type, optional PushEventInit eventInitDict), Exposed=ServiceWorker, SecureContext]
74
68
interface PushEvent : ExtendableEvent {
75
69
readonly attribute PushMessageData? data;
76
70
};
77
71
78
- dictionary PushSubscriptionChangeInit : ExtendableEventInit {
79
- PushSubscription newSubscription = null;
80
- PushSubscription oldSubscription = null;
72
+ typedef (BufferSource or USVString) PushMessageDataInit;
73
+
74
+ dictionary PushEventInit : ExtendableEventInit {
75
+ PushMessageDataInit data;
81
76
};
82
77
83
78
[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict), Exposed=ServiceWorker, SecureContext]
@@ -86,6 +81,11 @@ interface PushSubscriptionChangeEvent : ExtendableEvent {
86
81
readonly attribute PushSubscription? oldSubscription;
87
82
};
88
83
84
+ dictionary PushSubscriptionChangeInit : ExtendableEventInit {
85
+ PushSubscription newSubscription = null;
86
+ PushSubscription oldSubscription = null;
87
+ };
88
+
89
89
enum PushPermissionState {
90
90
"denied",
91
91
"granted",
0 commit comments