@webref/idl 3.47.1 → 3.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compute-pressure.idl +1 -1
- package/digital-identities.idl +1 -1
- package/encrypted-media.idl +65 -63
- package/fenced-frame.idl +8 -1
- package/mediacapture-streams.idl +10 -0
- package/package.json +1 -1
- package/service-workers.idl +1 -1
package/compute-pressure.idl
CHANGED
|
@@ -21,7 +21,7 @@ interface PressureObserver {
|
|
|
21
21
|
undefined disconnect();
|
|
22
22
|
sequence<PressureRecord> takeRecords();
|
|
23
23
|
|
|
24
|
-
[SameObject] static readonly attribute FrozenArray<PressureSource>
|
|
24
|
+
[SameObject] static readonly attribute FrozenArray<PressureSource> knownSources;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
|
package/digital-identities.idl
CHANGED
package/encrypted-media.idl
CHANGED
|
@@ -5,44 +5,46 @@
|
|
|
5
5
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
partial interface Navigator {
|
|
8
|
-
|
|
8
|
+
[SecureContext] Promise<MediaKeySystemAccess> requestMediaKeySystemAccess (
|
|
9
|
+
DOMString keySystem,
|
|
10
|
+
sequence<MediaKeySystemConfiguration> supportedConfigurations);
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
enum MediaKeysRequirement {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
"required",
|
|
15
|
+
"optional",
|
|
16
|
+
"not-allowed"
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
dictionary MediaKeySystemConfiguration {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
DOMString label = "";
|
|
21
|
+
sequence<DOMString> initDataTypes = [];
|
|
22
|
+
sequence<MediaKeySystemMediaCapability> audioCapabilities = [];
|
|
23
|
+
sequence<MediaKeySystemMediaCapability> videoCapabilities = [];
|
|
24
|
+
MediaKeysRequirement distinctiveIdentifier = "optional";
|
|
25
|
+
MediaKeysRequirement persistentState = "optional";
|
|
26
|
+
sequence<DOMString> sessionTypes;
|
|
25
27
|
};
|
|
26
28
|
|
|
27
29
|
dictionary MediaKeySystemMediaCapability {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
DOMString contentType = "";
|
|
31
|
+
DOMString? encryptionScheme = null;
|
|
32
|
+
DOMString robustness = "";
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
[Exposed=Window, SecureContext] interface MediaKeySystemAccess {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
readonly attribute DOMString keySystem;
|
|
37
|
+
MediaKeySystemConfiguration getConfiguration ();
|
|
38
|
+
Promise<MediaKeys> createMediaKeys ();
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
enum MediaKeySessionType {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
"temporary",
|
|
43
|
+
"persistent-license"
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
[Exposed=Window, SecureContext] interface MediaKeys {
|
|
45
|
-
MediaKeySession
|
|
47
|
+
MediaKeySession createSession (optional MediaKeySessionType sessionType = "temporary");
|
|
46
48
|
Promise<MediaKeyStatus> getStatusForPolicy (optional MediaKeysPolicy policy = {});
|
|
47
49
|
Promise<boolean> setServerCertificate (BufferSource serverCertificate);
|
|
48
50
|
};
|
|
@@ -64,69 +66,69 @@ enum HDCPVersion {
|
|
|
64
66
|
};
|
|
65
67
|
|
|
66
68
|
enum MediaKeySessionClosedReason {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
"internal-error",
|
|
70
|
+
"closed-by-application",
|
|
71
|
+
"release-acknowledged",
|
|
72
|
+
"hardware-context-reset",
|
|
73
|
+
"resource-evicted"
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
[Exposed=Window, SecureContext] interface MediaKeySession : EventTarget {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
readonly attribute DOMString sessionId;
|
|
78
|
+
readonly attribute unrestricted double expiration;
|
|
79
|
+
readonly attribute Promise<MediaKeySessionClosedReason> closed;
|
|
80
|
+
readonly attribute MediaKeyStatusMap keyStatuses;
|
|
81
|
+
attribute EventHandler onkeystatuseschange;
|
|
82
|
+
attribute EventHandler onmessage;
|
|
83
|
+
Promise<undefined> generateRequest (DOMString initDataType, BufferSource initData);
|
|
84
|
+
Promise<boolean> load (DOMString sessionId);
|
|
85
|
+
Promise<undefined> update (BufferSource response);
|
|
86
|
+
Promise<undefined> close ();
|
|
87
|
+
Promise<undefined> remove ();
|
|
86
88
|
};
|
|
87
89
|
|
|
88
90
|
[Exposed=Window, SecureContext] interface MediaKeyStatusMap {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
iterable<BufferSource,MediaKeyStatus>;
|
|
92
|
+
readonly attribute unsigned long size;
|
|
93
|
+
boolean has (BufferSource keyId);
|
|
94
|
+
(MediaKeyStatus or undefined) get (BufferSource keyId);
|
|
93
95
|
};
|
|
94
96
|
|
|
95
97
|
enum MediaKeyStatus {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
"usable",
|
|
99
|
+
"expired",
|
|
100
|
+
"released",
|
|
101
|
+
"output-restricted",
|
|
102
|
+
"output-downscaled",
|
|
103
|
+
"usable-in-future",
|
|
104
|
+
"status-pending",
|
|
105
|
+
"internal-error"
|
|
104
106
|
};
|
|
105
107
|
|
|
106
108
|
enum MediaKeyMessageType {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
"license-request",
|
|
110
|
+
"license-renewal",
|
|
111
|
+
"license-release",
|
|
112
|
+
"individualization-request"
|
|
111
113
|
};
|
|
112
114
|
|
|
113
115
|
[Exposed=Window, SecureContext]
|
|
114
116
|
interface MediaKeyMessageEvent : Event {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
constructor(DOMString type, MediaKeyMessageEventInit eventInitDict);
|
|
118
|
+
readonly attribute MediaKeyMessageType messageType;
|
|
119
|
+
readonly attribute ArrayBuffer message;
|
|
118
120
|
};
|
|
119
121
|
|
|
120
122
|
dictionary MediaKeyMessageEventInit : EventInit {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
required MediaKeyMessageType messageType;
|
|
124
|
+
required ArrayBuffer message;
|
|
123
125
|
};
|
|
124
126
|
|
|
125
127
|
[Exposed=Window] partial interface HTMLMediaElement {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
[SecureContext] readonly attribute MediaKeys? mediaKeys;
|
|
129
|
+
attribute EventHandler onencrypted;
|
|
130
|
+
attribute EventHandler onwaitingforkey;
|
|
131
|
+
[SecureContext] Promise<undefined> setMediaKeys (MediaKeys? mediaKeys);
|
|
130
132
|
};
|
|
131
133
|
|
|
132
134
|
[Exposed=Window]
|
|
@@ -137,6 +139,6 @@ interface MediaEncryptedEvent : Event {
|
|
|
137
139
|
};
|
|
138
140
|
|
|
139
141
|
dictionary MediaEncryptedEventInit : EventInit {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
DOMString initDataType = "";
|
|
143
|
+
ArrayBuffer? initData = null;
|
|
142
144
|
};
|
package/fenced-frame.idl
CHANGED
|
@@ -53,10 +53,17 @@ dictionary FenceEvent {
|
|
|
53
53
|
DOMString eventData;
|
|
54
54
|
sequence<FenceReportingDestination> destination;
|
|
55
55
|
|
|
56
|
+
// Determines if this data can be sent in a reportEvent() beacon or automatic
|
|
57
|
+
// beacon that originates from a document that is cross-origin to the mapped
|
|
58
|
+
// URL of the fenced frame config that loaded this frame tree.
|
|
59
|
+
// Note that automatic beacon data can only be set from documents that are
|
|
60
|
+
// same-origin to the fenced frame config’s mapped URL, so this effectively
|
|
61
|
+
// opts in the data to being used in a cross-origin subframe.
|
|
62
|
+
boolean crossOriginExposed = false;
|
|
63
|
+
|
|
56
64
|
// When setting event data to be used later in an automatic beacon, the
|
|
57
65
|
// following properties are used:
|
|
58
66
|
boolean once = false;
|
|
59
|
-
boolean crossOriginExposed = false;
|
|
60
67
|
|
|
61
68
|
// When reporting to a custom destination URL (with substitution of macros defined by
|
|
62
69
|
// the Protected Audience buyer), the following property is used:
|
package/mediacapture-streams.idl
CHANGED
|
@@ -179,6 +179,16 @@ interface InputDeviceInfo : MediaDeviceInfo {
|
|
|
179
179
|
MediaTrackCapabilities getCapabilities();
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
+
[Exposed=Window]
|
|
183
|
+
interface DeviceChangeEvent : Event {
|
|
184
|
+
constructor(DOMString type, optional DeviceChangeEventInit eventInitDict = {});
|
|
185
|
+
[SameObject] readonly attribute FrozenArray<MediaDeviceInfo> devices;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
dictionary DeviceChangeEventInit : EventInit {
|
|
189
|
+
sequence<MediaDeviceInfo> devices = [];
|
|
190
|
+
};
|
|
191
|
+
|
|
182
192
|
partial interface MediaDevices {
|
|
183
193
|
MediaTrackSupportedConstraints getSupportedConstraints();
|
|
184
194
|
Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints = {});
|
package/package.json
CHANGED
package/service-workers.idl
CHANGED
|
@@ -60,7 +60,7 @@ interface ServiceWorkerContainer : EventTarget {
|
|
|
60
60
|
readonly attribute ServiceWorker? controller;
|
|
61
61
|
readonly attribute Promise<ServiceWorkerRegistration> ready;
|
|
62
62
|
|
|
63
|
-
[NewObject] Promise<ServiceWorkerRegistration> register(USVString scriptURL, optional RegistrationOptions options = {});
|
|
63
|
+
[NewObject] Promise<ServiceWorkerRegistration> register((TrustedScriptURL or USVString) scriptURL, optional RegistrationOptions options = {});
|
|
64
64
|
|
|
65
65
|
[NewObject] Promise<(ServiceWorkerRegistration or undefined)> getRegistration(optional USVString clientURL = "");
|
|
66
66
|
[NewObject] Promise<FrozenArray<ServiceWorkerRegistration>> getRegistrations();
|