@webref/idl 3.47.4 → 3.48.1

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/FileAPI.idl CHANGED
@@ -20,6 +20,7 @@ interface Blob {
20
20
  [NewObject] ReadableStream stream();
21
21
  [NewObject] Promise<USVString> text();
22
22
  [NewObject] Promise<ArrayBuffer> arrayBuffer();
23
+ [NewObject] Promise<Uint8Array> bytes();
23
24
  };
24
25
 
25
26
  enum EndingType { "transparent", "native" };
package/compression.idl CHANGED
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: Compression Streams (https://wicg.github.io/compression/)
4
+ // Source: Compression Standard (https://compression.spec.whatwg.org/)
5
5
 
6
6
  enum CompressionFormat {
7
7
  "deflate",
@@ -8,6 +8,7 @@ interface Credential {
8
8
  readonly attribute USVString id;
9
9
  readonly attribute DOMString type;
10
10
  static Promise<boolean> isConditionalMediationAvailable();
11
+ static Promise<undefined> willRequestConditionalCreation();
11
12
  };
12
13
 
13
14
  [SecureContext]
@@ -45,6 +46,7 @@ enum CredentialMediationRequirement {
45
46
  };
46
47
 
47
48
  dictionary CredentialCreationOptions {
49
+ CredentialMediationRequirement mediation = "optional";
48
50
  AbortSignal signal;
49
51
  };
50
52
 
package/cssom-view.idl CHANGED
@@ -84,10 +84,14 @@ interface Screen {
84
84
  partial interface Document {
85
85
  Element? elementFromPoint(double x, double y);
86
86
  sequence<Element> elementsFromPoint(double x, double y);
87
- CaretPosition? caretPositionFromPoint(double x, double y, ShadowRoot... shadowRoots);
87
+ CaretPosition? caretPositionFromPoint(double x, double y, optional CaretPositionFromPointOptions options = {});
88
88
  readonly attribute Element? scrollingElement;
89
89
  };
90
90
 
91
+ dictionary CaretPositionFromPointOptions {
92
+ sequence<ShadowRoot> shadowRoots = [];
93
+ };
94
+
91
95
  [Exposed=Window]
92
96
  interface CaretPosition {
93
97
  readonly attribute Node offsetNode;
package/fenced-frame.idl CHANGED
@@ -35,6 +35,9 @@ typedef (USVString or FencedFrameConfig) UrnOrConfig;
35
35
  partial interface Navigator {
36
36
  Promise<undefined> deprecatedReplaceInURN(
37
37
  UrnOrConfig urnOrConfig, record<USVString, USVString> replacements);
38
+ Promise<USVString> deprecatedURNtoURL(
39
+ UrnOrConfig urnOrConfig, optional boolean send_reports = false);
40
+ sequence<USVString> adAuctionComponents(unsigned short numAdComponents);
38
41
  };
39
42
 
40
43
  enum FenceReportingDestination {
package/html.idl CHANGED
@@ -48,7 +48,7 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
48
48
 
49
49
  [LegacyOverrideBuiltIns]
50
50
  partial interface Document {
51
- static Document parseHTMLUnsafe(HTMLString html);
51
+ static Document parseHTMLUnsafe((TrustedHTML or DOMString) html);
52
52
 
53
53
  // resource metadata management
54
54
  [PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
@@ -77,8 +77,8 @@ partial interface Document {
77
77
  [CEReactions] Document open(optional DOMString unused1, optional DOMString unused2); // both arguments are ignored
78
78
  WindowProxy? open(USVString url, DOMString name, DOMString features);
79
79
  [CEReactions] undefined close();
80
- [CEReactions] undefined write(HTMLString... text);
81
- [CEReactions] undefined writeln(HTMLString... text);
80
+ [CEReactions] undefined write((TrustedHTML or DOMString)... text);
81
+ [CEReactions] undefined writeln((TrustedHTML or DOMString)... text);
82
82
 
83
83
  // user interaction
84
84
  readonly attribute WindowProxy? defaultView;
@@ -452,7 +452,7 @@ interface HTMLIFrameElement : HTMLElement {
452
452
  [HTMLConstructor] constructor();
453
453
 
454
454
  [CEReactions] attribute USVString src;
455
- [CEReactions] attribute HTMLString srcdoc;
455
+ [CEReactions] attribute (TrustedHTML or DOMString) srcdoc;
456
456
  [CEReactions] attribute DOMString name;
457
457
  [SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
458
458
  [CEReactions] attribute DOMString allow;
@@ -2260,7 +2260,7 @@ interface mixin WindowEventHandlers {
2260
2260
  attribute EventHandler onunload;
2261
2261
  };
2262
2262
 
2263
- typedef (DOMString or Function) TimerHandler;
2263
+ typedef (DOMString or Function or TrustedScript) TimerHandler;
2264
2264
 
2265
2265
  interface mixin WindowOrWorkerGlobalScope {
2266
2266
  [Replaceable] readonly attribute USVString origin;
@@ -2293,19 +2293,19 @@ Window includes WindowOrWorkerGlobalScope;
2293
2293
  WorkerGlobalScope includes WindowOrWorkerGlobalScope;
2294
2294
 
2295
2295
  partial interface Element {
2296
- [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2296
+ [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html);
2297
2297
  DOMString getHTML(optional GetHTMLOptions options = {});
2298
2298
 
2299
- [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
2300
- [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
2301
- [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString string);
2299
+ [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
2300
+ [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) outerHTML;
2301
+ [CEReactions] undefined insertAdjacentHTML(DOMString position, (TrustedHTML or DOMString) string);
2302
2302
  };
2303
2303
 
2304
2304
  partial interface ShadowRoot {
2305
- [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2305
+ [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html);
2306
2306
  DOMString getHTML(optional GetHTMLOptions options = {});
2307
2307
 
2308
- [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
2308
+ [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
2309
2309
  };
2310
2310
 
2311
2311
  dictionary GetHTMLOptions {
@@ -2317,7 +2317,7 @@ dictionary GetHTMLOptions {
2317
2317
  interface DOMParser {
2318
2318
  constructor();
2319
2319
 
2320
- [NewObject] Document parseFromString(HTMLString string, DOMParserSupportedType type);
2320
+ [NewObject] Document parseFromString((TrustedHTML or DOMString) string, DOMParserSupportedType type);
2321
2321
  };
2322
2322
 
2323
2323
  enum DOMParserSupportedType {
@@ -2329,7 +2329,7 @@ enum DOMParserSupportedType {
2329
2329
  };
2330
2330
 
2331
2331
  partial interface Range {
2332
- [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString string);
2332
+ [CEReactions, NewObject] DocumentFragment createContextualFragment((TrustedHTML or DOMString) string);
2333
2333
  };
2334
2334
 
2335
2335
  [Exposed=Window]
@@ -2544,7 +2544,7 @@ interface WorkerGlobalScope : EventTarget {
2544
2544
  readonly attribute WorkerGlobalScope self;
2545
2545
  readonly attribute WorkerLocation location;
2546
2546
  readonly attribute WorkerNavigator navigator;
2547
- undefined importScripts(ScriptURLString... urls);
2547
+ undefined importScripts((TrustedScriptURL or USVString)... urls);
2548
2548
 
2549
2549
  attribute OnErrorEventHandler onerror;
2550
2550
  attribute EventHandler onlanguagechange;
@@ -2582,7 +2582,7 @@ interface mixin AbstractWorker {
2582
2582
 
2583
2583
  [Exposed=(Window,DedicatedWorker,SharedWorker)]
2584
2584
  interface Worker : EventTarget {
2585
- constructor(ScriptURLString scriptURL, optional WorkerOptions options = {});
2585
+ constructor((TrustedScriptURL or USVString) scriptURL, optional WorkerOptions options = {});
2586
2586
 
2587
2587
  undefined terminate();
2588
2588
 
@@ -2604,7 +2604,7 @@ Worker includes AbstractWorker;
2604
2604
 
2605
2605
  [Exposed=Window]
2606
2606
  interface SharedWorker : EventTarget {
2607
- constructor(ScriptURLString scriptURL, optional (DOMString or WorkerOptions) options = {});
2607
+ constructor((TrustedScriptURL or USVString) scriptURL, optional (DOMString or WorkerOptions) options = {});
2608
2608
 
2609
2609
  readonly attribute MessagePort port;
2610
2610
  };
@@ -6,7 +6,7 @@
6
6
  [Exposed=DedicatedWorker]
7
7
  interface MediaStreamTrackProcessor {
8
8
  constructor(MediaStreamTrackProcessorInit init);
9
- attribute ReadableStream readable;
9
+ readonly attribute ReadableStream readable;
10
10
  };
11
11
 
12
12
  dictionary MediaStreamTrackProcessorInit {
package/mediasession.idl CHANGED
@@ -26,6 +26,7 @@ enum MediaSessionAction {
26
26
  "seekto",
27
27
  "togglemicrophone",
28
28
  "togglecamera",
29
+ "togglescreenshare",
29
30
  "hangup",
30
31
  "previousslide",
31
32
  "nextslide",
@@ -47,6 +48,8 @@ interface MediaSession {
47
48
  Promise<undefined> setMicrophoneActive(boolean active);
48
49
 
49
50
  Promise<undefined> setCameraActive(boolean active);
51
+
52
+ Promise<undefined> setScreenshareActive(boolean active);
50
53
  };
51
54
 
52
55
  [Exposed=Window]
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.47.4",
4
+ "version": "3.48.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/push-api.idl CHANGED
@@ -58,6 +58,7 @@ enum PushEncryptionKeyName {
58
58
  interface PushMessageData {
59
59
  ArrayBuffer arrayBuffer();
60
60
  Blob blob();
61
+ Uint8Array bytes();
61
62
  any json();
62
63
  USVString text();
63
64
  };
@@ -0,0 +1,45 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Extending Storage Access API (SAA) to non-cookie storage (https://privacycg.github.io/saa-non-cookie-storage/)
5
+
6
+ dictionary StorageAccessTypes {
7
+ boolean all = false;
8
+ boolean cookies = false;
9
+ boolean sessionStorage = false;
10
+ boolean localStorage = false;
11
+ boolean indexedDB = false;
12
+ boolean locks = false;
13
+ boolean caches = false;
14
+ boolean getDirectory = false;
15
+ boolean estimate = false;
16
+ boolean createObjectURL = false;
17
+ boolean revokeObjectURL = false;
18
+ boolean BroadcastChannel = false;
19
+ boolean SharedWorker = false;
20
+ };
21
+
22
+ [Exposed=Window]
23
+ interface StorageAccessHandle {
24
+ readonly attribute Storage sessionStorage;
25
+ readonly attribute Storage localStorage;
26
+ readonly attribute IDBFactory indexedDB;
27
+ readonly attribute LockManager locks;
28
+ readonly attribute CacheStorage caches;
29
+ Promise<FileSystemDirectoryHandle> getDirectory();
30
+ Promise<StorageEstimate> estimate();
31
+ DOMString createObjectURL((Blob or MediaSource) obj);
32
+ undefined revokeObjectURL(DOMString url);
33
+ BroadcastChannel BroadcastChannel(DOMString name);
34
+ SharedWorker SharedWorker(USVString scriptURL, optional (DOMString or SharedWorkerOptions) options = {});
35
+ };
36
+
37
+ partial interface Document {
38
+ Promise<boolean> hasUnpartitionedCookieAccess();
39
+ };
40
+
41
+ enum SameSiteCookiesType { "all", "none" };
42
+
43
+ dictionary SharedWorkerOptions : WorkerOptions {
44
+ SameSiteCookiesType sameSiteCookies;
45
+ };
@@ -9,18 +9,35 @@ enum TaskPriority {
9
9
  "background"
10
10
  };
11
11
 
12
+ enum ContinuationPriority {
13
+ "user-blocking",
14
+ "user-visible",
15
+ "background",
16
+ "inherit"
17
+ };
18
+
12
19
  dictionary SchedulerPostTaskOptions {
13
20
  AbortSignal signal;
14
21
  TaskPriority priority;
15
22
  [EnforceRange] unsigned long long delay = 0;
16
23
  };
17
24
 
25
+ enum SchedulerSignalInherit {
26
+ "inherit"
27
+ };
28
+
29
+ dictionary SchedulerYieldOptions {
30
+ (AbortSignal or SchedulerSignalInherit) signal;
31
+ ContinuationPriority priority;
32
+ };
33
+
18
34
  callback SchedulerPostTaskCallback = any ();
19
35
 
20
36
  [Exposed=(Window, Worker)]
21
37
  interface Scheduler {
22
38
  Promise<any> postTask(SchedulerPostTaskCallback callback,
23
39
  optional SchedulerPostTaskOptions options = {});
40
+ Promise<undefined> yield(optional SchedulerYieldOptions options = {});
24
41
  };
25
42
 
26
43
  [Exposed=(Window, Worker)]
package/trusted-types.idl CHANGED
@@ -58,9 +58,6 @@ callback CreateHTMLCallback = DOMString? (DOMString input, any... arguments);
58
58
  callback CreateScriptCallback = DOMString? (DOMString input, any... arguments);
59
59
  callback CreateScriptURLCallback = USVString? (DOMString input, any... arguments);
60
60
 
61
- typedef [StringContext=TrustedHTML] DOMString HTMLString;
62
- typedef [StringContext=TrustedScript] DOMString ScriptString;
63
- typedef [StringContext=TrustedScriptURL] USVString ScriptURLString;
64
61
  typedef (TrustedHTML or TrustedScript or TrustedScriptURL) TrustedType;
65
62
 
66
63
  partial interface mixin WindowOrWorkerGlobalScope {
package/turtledove.idl CHANGED
@@ -64,6 +64,7 @@ partial interface Navigator {
64
64
  [SecureContext]
65
65
  partial interface Navigator {
66
66
  Promise<(USVString or FencedFrameConfig)?> runAdAuction(AuctionAdConfig config);
67
+ readonly attribute boolean deprecatedRunAdAuctionEnforcesKAnonymity;
67
68
  };
68
69
 
69
70
  dictionary AuctionAdConfig {
@@ -204,6 +205,7 @@ dictionary BiddingBrowserSignals {
204
205
  required long adComponentsLimit;
205
206
  required unsigned short multiBidLimit;
206
207
 
208
+ record<DOMString, DOMString> requestedSize;
207
209
  USVString topLevelSeller;
208
210
  sequence<PreviousWin> prevWinsMs;
209
211
  object wasmHelper;
@@ -218,6 +220,7 @@ dictionary ScoringBrowserSignals {
218
220
  required unsigned long biddingDurationMsec;
219
221
  required DOMString bidCurrency;
220
222
 
223
+ record<DOMString, DOMString> renderSize;
221
224
  unsigned long dataVersion;
222
225
  sequence<USVString> adComponents;
223
226
  boolean forDebuggingOnlyInCooldownOrLockout = false;
package/webgpu.idl CHANGED
@@ -92,10 +92,10 @@ enum GPUPowerPreference {
92
92
  interface GPUAdapter {
93
93
  [SameObject] readonly attribute GPUSupportedFeatures features;
94
94
  [SameObject] readonly attribute GPUSupportedLimits limits;
95
+ [SameObject] readonly attribute GPUAdapterInfo info;
95
96
  readonly attribute boolean isFallbackAdapter;
96
97
 
97
98
  Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
98
- Promise<GPUAdapterInfo> requestAdapterInfo();
99
99
  };
100
100
 
101
101
  dictionary GPUDeviceDescriptor
@@ -117,6 +117,7 @@ enum GPUFeatureName {
117
117
  "rg11b10ufloat-renderable",
118
118
  "bgra8unorm-storage",
119
119
  "float32-filterable",
120
+ "clip-distances",
120
121
  };
121
122
 
122
123
  [Exposed=(Window, Worker), SecureContext]
package/webnn.idl CHANGED
@@ -90,8 +90,8 @@ interface MLGraphBuilder {
90
90
  // Create an operand for a graph constant.
91
91
  MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
92
92
 
93
- // Create a single-value operand from the specified number of the specified type.
94
- MLOperand constant(double value, optional MLOperandDataType type = "float32");
93
+ // Create a scalar operand from the specified number of the specified type.
94
+ MLOperand constant(MLOperandDataType type, double value);
95
95
 
96
96
  // Compile the graph up to the specified output operands asynchronously.
97
97
  Promise<MLGraph> build(MLNamedOperands outputs);
@@ -131,7 +131,6 @@ dictionary MLClampOptions {
131
131
 
132
132
  partial interface MLGraphBuilder {
133
133
  MLOperand clamp(MLOperand input, optional MLClampOptions options = {});
134
- MLActivation clamp(optional MLClampOptions options = {});
135
134
  };
136
135
 
137
136
  partial interface MLGraphBuilder {
@@ -200,7 +199,7 @@ partial interface MLGraphBuilder {
200
199
  MLOperand greaterOrEqual(MLOperand a, MLOperand b);
201
200
  MLOperand lesser(MLOperand a, MLOperand b);
202
201
  MLOperand lesserOrEqual(MLOperand a, MLOperand b);
203
- MLOperand not(MLOperand a);
202
+ MLOperand logicalNot(MLOperand a);
204
203
  };
205
204
 
206
205
  partial interface MLGraphBuilder {
@@ -513,7 +512,6 @@ partial interface MLGraphBuilder {
513
512
 
514
513
  partial interface MLGraphBuilder {
515
514
  MLOperand softmax(MLOperand input, unsigned long axis);
516
- MLActivation softmax(unsigned long axis);
517
515
  };
518
516
 
519
517
  partial interface MLGraphBuilder {
package/webrtc.idl CHANGED
@@ -434,9 +434,10 @@ dictionary RTCIceParameters {
434
434
  DOMString password;
435
435
  };
436
436
 
437
- dictionary RTCIceCandidatePair {
438
- required RTCIceCandidate local;
439
- required RTCIceCandidate remote;
437
+ [Exposed=Window]
438
+ interface RTCIceCandidatePair {
439
+ [SameObject] readonly attribute RTCIceCandidate local;
440
+ [SameObject] readonly attribute RTCIceCandidate remote;
440
441
  };
441
442
 
442
443
  enum RTCIceGathererState {
@@ -10,7 +10,8 @@ enum XRDepthUsage {
10
10
 
11
11
  enum XRDepthDataFormat {
12
12
  "luminance-alpha",
13
- "float32"
13
+ "float32",
14
+ "unsigned-short",
14
15
  };
15
16
 
16
17
  dictionary XRDepthStateInit {
@@ -50,6 +51,9 @@ partial interface XRFrame {
50
51
  [Exposed=Window]
51
52
  interface XRWebGLDepthInformation : XRDepthInformation {
52
53
  [SameObject] readonly attribute WebGLTexture texture;
54
+
55
+ readonly attribute XRTextureType textureType;
56
+ readonly attribute unsigned long? imageIndex;
53
57
  };
54
58
 
55
59
  partial interface XRWebGLBinding {
@@ -11,13 +11,13 @@ enum XRHitTestTrackableType {
11
11
 
12
12
  dictionary XRHitTestOptionsInit {
13
13
  required XRSpace space;
14
- FrozenArray<XRHitTestTrackableType> entityTypes;
14
+ sequence<XRHitTestTrackableType> entityTypes;
15
15
  XRRay offsetRay;
16
16
  };
17
17
 
18
18
  dictionary XRTransientInputHitTestOptionsInit {
19
19
  required DOMString profile;
20
- FrozenArray<XRHitTestTrackableType> entityTypes;
20
+ sequence<XRHitTestTrackableType> entityTypes;
21
21
  XRRay offsetRay;
22
22
  };
23
23
 
@@ -48,8 +48,8 @@ partial interface XRSession {
48
48
  };
49
49
 
50
50
  partial interface XRFrame {
51
- FrozenArray<XRHitTestResult> getHitTestResults(XRHitTestSource hitTestSource);
52
- FrozenArray<XRTransientInputHitTestResult> getHitTestResultsForTransientInput(XRTransientInputHitTestSource hitTestSource);
51
+ sequence<XRHitTestResult> getHitTestResults(XRHitTestSource hitTestSource);
52
+ sequence<XRTransientInputHitTestResult> getHitTestResultsForTransientInput(XRTransientInputHitTestSource hitTestSource);
53
53
  };
54
54
 
55
55
  dictionary XRRayDirectionInit {