mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -3,6 +3,10 @@
|
|||
// (https://github.com/w3c/webref)
|
||||
// Source: Push API (https://w3c.github.io/push-api/)
|
||||
|
||||
dictionary PushPermissionDescriptor : PermissionDescriptor {
|
||||
boolean userVisibleOnly = false;
|
||||
};
|
||||
|
||||
[SecureContext]
|
||||
partial interface ServiceWorkerRegistration {
|
||||
readonly attribute PushManager pushManager;
|
||||
|
@ -14,7 +18,7 @@ interface PushManager {
|
|||
|
||||
Promise<PushSubscription> subscribe(optional PushSubscriptionOptionsInit options = {});
|
||||
Promise<PushSubscription?> getSubscription();
|
||||
Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options = {});
|
||||
Promise<PermissionState> permissionState(optional PushSubscriptionOptionsInit options = {});
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker), SecureContext]
|
||||
|
@ -31,7 +35,7 @@ dictionary PushSubscriptionOptionsInit {
|
|||
[Exposed=(Window,Worker), SecureContext]
|
||||
interface PushSubscription {
|
||||
readonly attribute USVString endpoint;
|
||||
readonly attribute DOMTimeStamp? expirationTime;
|
||||
readonly attribute EpochTimeStamp? expirationTime;
|
||||
[SameObject] readonly attribute PushSubscriptionOptions options;
|
||||
ArrayBuffer? getKey(PushEncryptionKeyName name);
|
||||
Promise<boolean> unsubscribe();
|
||||
|
@ -41,7 +45,7 @@ interface PushSubscription {
|
|||
|
||||
dictionary PushSubscriptionJSON {
|
||||
USVString endpoint;
|
||||
DOMTimeStamp? expirationTime;
|
||||
EpochTimeStamp? expirationTime = null;
|
||||
record<DOMString, USVString> keys;
|
||||
};
|
||||
|
||||
|
@ -87,9 +91,3 @@ dictionary PushSubscriptionChangeEventInit : ExtendableEventInit {
|
|||
PushSubscription newSubscription = null;
|
||||
PushSubscription oldSubscription = null;
|
||||
};
|
||||
|
||||
enum PushPermissionState {
|
||||
"denied",
|
||||
"granted",
|
||||
"prompt",
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue