@webref/idl 3.43.2 → 3.44.0

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/CSP.idl CHANGED
@@ -41,16 +41,16 @@ interface SecurityPolicyViolationEvent : Event {
41
41
  };
42
42
 
43
43
  dictionary SecurityPolicyViolationEventInit : EventInit {
44
- required USVString documentURI;
45
- USVString referrer = "";
46
- USVString blockedURI = "";
47
- required DOMString violatedDirective;
48
- required DOMString effectiveDirective;
49
- required DOMString originalPolicy;
50
- USVString sourceFile = "";
51
- DOMString sample = "";
52
- required SecurityPolicyViolationEventDisposition disposition;
53
- required unsigned short statusCode;
54
- unsigned long lineNumber = 0;
55
- unsigned long columnNumber = 0;
44
+ USVString documentURI = "";
45
+ USVString referrer = "";
46
+ USVString blockedURI = "";
47
+ DOMString violatedDirective = "";
48
+ DOMString effectiveDirective = "";
49
+ DOMString originalPolicy = "";
50
+ USVString sourceFile = "";
51
+ DOMString sample = "";
52
+ SecurityPolicyViolationEventDisposition disposition = "enforce";
53
+ unsigned short statusCode = 0;
54
+ unsigned long lineNumber = 0;
55
+ unsigned long columnNumber = 0;
56
56
  };
@@ -0,0 +1,27 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Digital Credentials (https://wicg.github.io/digital-identities/)
5
+
6
+ partial interface Navigator {
7
+ [SecureContext, SameObject] readonly attribute CredentialsContainer identity;
8
+ };
9
+
10
+ partial dictionary CredentialRequestOptions {
11
+ DigitalCredentialRequestOptions digital;
12
+ };
13
+
14
+ dictionary DigitalCredentialRequestOptions {
15
+ sequence<IdentityRequestProvider> providers;
16
+ };
17
+
18
+ dictionary IdentityRequestProvider {
19
+ required DOMString protocol;
20
+ required DOMString request;
21
+ };
22
+
23
+ [Exposed=Window, SecureContext]
24
+ interface DigitalCredential : Credential {
25
+ readonly attribute DOMString protocol;
26
+ readonly attribute DOMString data;
27
+ };
package/gamepad.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Gamepad (https://w3c.github.io/gamepad/)
5
5
 
6
- [Exposed=Window, SecureContext]
6
+ [Exposed=Window]
7
7
  interface Gamepad {
8
8
  readonly attribute DOMString id;
9
9
  readonly attribute long index;
@@ -15,7 +15,7 @@ interface Gamepad {
15
15
  [SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
16
16
  };
17
17
 
18
- [Exposed=Window, SecureContext]
18
+ [Exposed=Window]
19
19
  interface GamepadButton {
20
20
  readonly attribute boolean pressed;
21
21
  readonly attribute boolean touched;
@@ -59,7 +59,7 @@ partial interface Navigator {
59
59
  sequence<Gamepad?> getGamepads();
60
60
  };
61
61
 
62
- [Exposed=Window, SecureContext]
62
+ [Exposed=Window]
63
63
 
64
64
  interface GamepadEvent: Event {
65
65
  constructor(DOMString type, GamepadEventInit eventInitDict);
package/html.idl CHANGED
@@ -2087,6 +2087,23 @@ interface BeforeUnloadEvent : Event {
2087
2087
  attribute DOMString returnValue;
2088
2088
  };
2089
2089
 
2090
+ [Exposed=Window]
2091
+ interface NotRestoredReasonDetails {
2092
+ readonly attribute DOMString reason;
2093
+ [Default] object toJSON();
2094
+ };
2095
+
2096
+ [Exposed=Window]
2097
+ interface NotRestoredReasons {
2098
+ readonly attribute DOMString? src;
2099
+ readonly attribute DOMString? id;
2100
+ readonly attribute DOMString? name;
2101
+ readonly attribute DOMString? url;
2102
+ readonly attribute FrozenArray<NotRestoredReasonDetails>? reasons;
2103
+ readonly attribute FrozenArray<NotRestoredReasons>? children;
2104
+ [Default] object toJSON();
2105
+ };
2106
+
2090
2107
  [Exposed=*]
2091
2108
  interface ErrorEvent : Event {
2092
2109
  constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
package/longtasks.idl CHANGED
@@ -70,7 +70,9 @@ interface PerformanceScriptTiming : PerformanceEntry {
70
70
  readonly attribute ScriptInvokerType invokerType;
71
71
  readonly attribute DOMString invoker;
72
72
  readonly attribute DOMHighResTimeStamp executionStart;
73
- readonly attribute DOMString sourceLocation;
73
+ readonly attribute DOMString sourceURL;
74
+ readonly attribute DOMString sourceFunctionName;
75
+ readonly attribute long long sourceCharPosition;
74
76
  readonly attribute DOMHighResTimeStamp pauseDuration;
75
77
  readonly attribute DOMHighResTimeStamp forcedStyleAndLayoutDuration;
76
78
  readonly attribute Window? window;
package/mediasession.idl CHANGED
@@ -44,9 +44,9 @@ interface MediaSession {
44
44
 
45
45
  undefined setPositionState(optional MediaPositionState state = {});
46
46
 
47
- undefined setMicrophoneActive(boolean active);
47
+ Promise<undefined> setMicrophoneActive(boolean active);
48
48
 
49
- undefined setCameraActive(boolean active);
49
+ Promise<undefined> setCameraActive(boolean active);
50
50
  };
51
51
 
52
52
  [Exposed=Window]
@@ -79,7 +79,17 @@ dictionary MediaPositionState {
79
79
 
80
80
  dictionary MediaSessionActionDetails {
81
81
  required MediaSessionAction action;
82
+ };
83
+
84
+ dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails {
82
85
  double seekOffset;
83
- double seekTime;
86
+ };
87
+
88
+ dictionary MediaSessionSeekToActionDetails : MediaSessionActionDetails {
89
+ required double seekTime;
84
90
  boolean fastSeek;
85
91
  };
92
+
93
+ dictionary MediaSessionCaptureActionDetails : MediaSessionActionDetails {
94
+ boolean isActivating;
95
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.43.2",
4
+ "version": "3.44.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -92,7 +92,7 @@ dictionary NavigationPreloadState {
92
92
  ByteString headerValue;
93
93
  };
94
94
 
95
- [Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
95
+ [Global=(Worker,ServiceWorker), Exposed=ServiceWorker, SecureContext]
96
96
  interface ServiceWorkerGlobalScope : WorkerGlobalScope {
97
97
  [SameObject] readonly attribute Clients clients;
98
98
  [SameObject] readonly attribute ServiceWorkerRegistration registration;
@@ -165,6 +165,40 @@ dictionary ExtendableEventInit : EventInit {
165
165
  // Defined for the forward compatibility across the derived events
166
166
  };
167
167
 
168
+ [Exposed=ServiceWorker]
169
+ interface InstallEvent : ExtendableEvent {
170
+ Promise<undefined> addRoutes((RouterRule or sequence<RouterRule>) rules);
171
+ };
172
+
173
+ dictionary RouterRule {
174
+ required RouterCondition condition;
175
+ required RouterSource source;
176
+ };
177
+
178
+ dictionary RouterCondition {
179
+ URLPatternCompatible urlPattern;
180
+ ByteString requestMethod;
181
+ RequestMode requestMode;
182
+ RequestDestination requestDestination;
183
+ RunningStatus runningStatus;
184
+
185
+ sequence<RouterCondition> _or;
186
+ };
187
+
188
+ typedef (RouterSourceDict or RouterSourceEnum) RouterSource;
189
+
190
+ dictionary RouterSourceDict {
191
+ DOMString cacheName;
192
+ };
193
+
194
+ enum RunningStatus { "running", "not-running" };
195
+ enum RouterSourceEnum {
196
+ "cache",
197
+ "fetch-event",
198
+ "network",
199
+ "race-network-and-fetch-handler"
200
+ };
201
+
168
202
  [Exposed=ServiceWorker]
169
203
  interface FetchEvent : ExtendableEvent {
170
204
  constructor(DOMString type, FetchEventInit eventInitDict);
package/trusted-types.idl CHANGED
@@ -7,21 +7,18 @@
7
7
  interface TrustedHTML {
8
8
  stringifier;
9
9
  DOMString toJSON();
10
- static TrustedHTML fromLiteral(object templateStringsArray);
11
10
  };
12
11
 
13
12
  [Exposed=(Window,Worker)]
14
13
  interface TrustedScript {
15
14
  stringifier;
16
15
  DOMString toJSON();
17
- static TrustedScript fromLiteral(object templateStringsArray);
18
16
  };
19
17
 
20
18
  [Exposed=(Window,Worker)]
21
19
  interface TrustedScriptURL {
22
20
  stringifier;
23
21
  USVString toJSON();
24
- static TrustedScriptURL fromLiteral(object templateStringsArray);
25
22
  };
26
23
 
27
24
  [Exposed=(Window,Worker)] interface TrustedTypePolicyFactory {
package/turtledove.idl CHANGED
@@ -197,6 +197,7 @@ dictionary BiddingBrowserSignals {
197
197
  sequence<PreviousWin> prevWinsMs;
198
198
  object wasmHelper;
199
199
  unsigned long dataVersion;
200
+ boolean forDebuggingOnlyInCooldownOrLockout = false;
200
201
  };
201
202
 
202
203
  dictionary ScoringBrowserSignals {
@@ -208,6 +209,7 @@ dictionary ScoringBrowserSignals {
208
209
 
209
210
  unsigned long dataVersion;
210
211
  sequence<USVString> adComponents;
212
+ boolean forDebuggingOnlyInCooldownOrLockout = false;
211
213
  };
212
214
 
213
215
  dictionary ReportingBrowserSignals {
package/uievents.idl CHANGED
@@ -226,6 +226,16 @@ partial dictionary KeyboardEventInit {
226
226
  unsigned long keyCode = 0;
227
227
  };
228
228
 
229
+ [Exposed=Window]
230
+ interface TextEvent : UIEvent {
231
+ readonly attribute DOMString data;
232
+ undefined initTextEvent(DOMString type,
233
+ optional boolean bubbles = false,
234
+ optional boolean cancelable = false,
235
+ optional Window? view = null,
236
+ optional DOMString data = "undefined");
237
+ };
238
+
229
239
  [Exposed=Window]
230
240
  interface MutationEvent : Event {
231
241
  // attrChangeType
package/wai-aria.idl CHANGED
@@ -57,5 +57,4 @@ interface mixin ARIAMixin {
57
57
  [CEReactions] attribute DOMString? ariaValueNow;
58
58
  [CEReactions] attribute DOMString? ariaValueText;
59
59
  };
60
-
61
60
  Element includes ARIAMixin;
package/webgl1.idl CHANGED
@@ -518,6 +518,9 @@ interface mixin WebGLRenderingContextBase
518
518
  readonly attribute GLsizei drawingBufferWidth;
519
519
  readonly attribute GLsizei drawingBufferHeight;
520
520
  readonly attribute GLenum drawingBufferFormat;
521
+
522
+ /* Upon context creation, drawingBufferColorSpace and unpackColorSpace both
523
+ default to the value "srgb". */
521
524
  attribute PredefinedColorSpace drawingBufferColorSpace;
522
525
  attribute PredefinedColorSpace unpackColorSpace;
523
526
 
package/webnn.idl CHANGED
@@ -29,11 +29,6 @@ dictionary MLContextOptions {
29
29
  interface ML {
30
30
  Promise<MLContext> createContext(optional MLContextOptions options = {});
31
31
  Promise<MLContext> createContext(GPUDevice gpuDevice);
32
-
33
- [Exposed=(DedicatedWorker)]
34
- MLContext createContextSync(optional MLContextOptions options = {});
35
- [Exposed=(DedicatedWorker)]
36
- MLContext createContextSync(GPUDevice gpuDevice);
37
32
  };
38
33
 
39
34
  [SecureContext, Exposed=(Window, DedicatedWorker)]
@@ -45,12 +40,6 @@ typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
45
40
  [SecureContext, Exposed=(Window, DedicatedWorker)]
46
41
  interface MLContext {};
47
42
 
48
- partial interface MLContext {
49
- [Exposed=(DedicatedWorker)]
50
- undefined computeSync(
51
- MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
52
- };
53
-
54
43
  dictionary MLComputeResult {
55
44
  MLNamedArrayBufferViews inputs;
56
45
  MLNamedArrayBufferViews outputs;
@@ -66,14 +55,6 @@ interface MLGraph {};
66
55
 
67
56
  typedef record<DOMString, MLOperand> MLNamedOperands;
68
57
 
69
- dictionary MLBufferResourceView {
70
- required GPUBuffer resource;
71
- unsigned long long offset = 0;
72
- unsigned long long size;
73
- };
74
-
75
- typedef (ArrayBufferView or MLBufferResourceView) MLBufferView;
76
-
77
58
  [SecureContext, Exposed=(Window, DedicatedWorker)]
78
59
  interface MLGraphBuilder {
79
60
  // Construct the graph builder from the context.
@@ -83,17 +64,13 @@ interface MLGraphBuilder {
83
64
  MLOperand input(DOMString name, MLOperandDescriptor descriptor);
84
65
 
85
66
  // Create an operand for a graph constant.
86
- MLOperand constant(MLOperandDescriptor descriptor, MLBufferView bufferView);
67
+ MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
87
68
 
88
69
  // Create a single-value operand from the specified number of the specified type.
89
70
  MLOperand constant(double value, optional MLOperandDataType type = "float32");
90
71
 
91
72
  // Compile the graph up to the specified output operands asynchronously.
92
73
  Promise<MLGraph> build(MLNamedOperands outputs);
93
-
94
- // Compile the graph up to the specified output operands synchronously.
95
- [Exposed=(DedicatedWorker)]
96
- MLGraph buildSync(MLNamedOperands outputs);
97
74
  };
98
75
 
99
76
  dictionary MLArgMinMaxOptions {