Skip to content

Commit 13861f4

Browse files
Sync interfaces/ with @webref/idl 3.48.0 (#46647)
Co-authored-by: wpt-pr-bot <[email protected]>
1 parent 9db158b commit 13861f4

16 files changed

+96
-14
lines changed

interfaces/FileAPI.idl

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ interface Blob {
2020
[NewObject] ReadableStream stream();
2121
[NewObject] Promise<USVString> text();
2222
[NewObject] Promise<ArrayBuffer> arrayBuffer();
23+
[NewObject] Promise<Uint8Array> bytes();
2324
};
2425

2526
enum EndingType { "transparent", "native" };

interfaces/compression.idl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// GENERATED CONTENT - DO NOT EDIT
22
// Content was automatically extracted by Reffy into webref
33
// (https://github.com/w3c/webref)
4-
// Source: Compression Streams (https://wicg.github.io/compression/)
4+
// Source: Compression Standard (https://compression.spec.whatwg.org/)
55

66
enum CompressionFormat {
77
"deflate",

interfaces/credential-management.idl

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface Credential {
88
readonly attribute USVString id;
99
readonly attribute DOMString type;
1010
static Promise<boolean> isConditionalMediationAvailable();
11+
static Promise<undefined> willRequestConditionalCreation();
1112
};
1213

1314
[SecureContext]
@@ -45,6 +46,7 @@ enum CredentialMediationRequirement {
4546
};
4647

4748
dictionary CredentialCreationOptions {
49+
CredentialMediationRequirement mediation = "optional";
4850
AbortSignal signal;
4951
};
5052

interfaces/cssom-view.idl

+5-1
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,14 @@ interface Screen {
8484
partial interface Document {
8585
Element? elementFromPoint(double x, double y);
8686
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 = {});
8888
readonly attribute Element? scrollingElement;
8989
};
9090

91+
dictionary CaretPositionFromPointOptions {
92+
sequence<ShadowRoot> shadowRoots = [];
93+
};
94+
9195
[Exposed=Window]
9296
interface CaretPosition {
9397
readonly attribute Node offsetNode;

interfaces/fenced-frame.idl

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ typedef (USVString or FencedFrameConfig) UrnOrConfig;
3535
partial interface Navigator {
3636
Promise<undefined> deprecatedReplaceInURN(
3737
UrnOrConfig urnOrConfig, record<USVString, USVString> replacements);
38+
sequence<USVString> adAuctionComponents(unsigned short numAdComponents);
3839
};
3940

4041
enum FenceReportingDestination {

interfaces/html.idl

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ partial interface Document {
7777
[CEReactions] Document open(optional DOMString unused1, optional DOMString unused2); // both arguments are ignored
7878
WindowProxy? open(USVString url, DOMString name, DOMString features);
7979
[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);
8282

8383
// user interaction
8484
readonly attribute WindowProxy? defaultView;
@@ -2260,7 +2260,7 @@ interface mixin WindowEventHandlers {
22602260
attribute EventHandler onunload;
22612261
};
22622262

2263-
typedef (DOMString or Function) TimerHandler;
2263+
typedef (DOMString or Function or TrustedScript) TimerHandler;
22642264

22652265
interface mixin WindowOrWorkerGlobalScope {
22662266
[Replaceable] readonly attribute USVString origin;

interfaces/mediacapture-transform.idl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[Exposed=DedicatedWorker]
77
interface MediaStreamTrackProcessor {
88
constructor(MediaStreamTrackProcessorInit init);
9-
attribute ReadableStream readable;
9+
readonly attribute ReadableStream readable;
1010
};
1111

1212
dictionary MediaStreamTrackProcessorInit {

interfaces/mediasession.idl

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ enum MediaSessionAction {
2626
"seekto",
2727
"togglemicrophone",
2828
"togglecamera",
29+
"togglescreenshare",
2930
"hangup",
3031
"previousslide",
3132
"nextslide",
@@ -47,6 +48,8 @@ interface MediaSession {
4748
Promise<undefined> setMicrophoneActive(boolean active);
4849

4950
Promise<undefined> setCameraActive(boolean active);
51+
52+
Promise<undefined> setScreenshareActive(boolean active);
5053
};
5154

5255
[Exposed=Window]

interfaces/push-api.idl

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ enum PushEncryptionKeyName {
5858
interface PushMessageData {
5959
ArrayBuffer arrayBuffer();
6060
Blob blob();
61+
Uint8Array bytes();
6162
any json();
6263
USVString text();
6364
};

interfaces/saa-non-cookie-storage.idl

+45
Original file line numberDiff line numberDiff line change
@@ -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+
};

interfaces/scheduling-apis.idl

+17
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,35 @@ enum TaskPriority {
99
"background"
1010
};
1111

12+
enum ContinuationPriority {
13+
"user-blocking",
14+
"user-visible",
15+
"background",
16+
"inherit"
17+
};
18+
1219
dictionary SchedulerPostTaskOptions {
1320
AbortSignal signal;
1421
TaskPriority priority;
1522
[EnforceRange] unsigned long long delay = 0;
1623
};
1724

25+
enum SchedulerSignalInherit {
26+
"inherit"
27+
};
28+
29+
dictionary SchedulerYieldOptions {
30+
(AbortSignal or SchedulerSignalInherit) signal;
31+
ContinuationPriority priority;
32+
};
33+
1834
callback SchedulerPostTaskCallback = any ();
1935

2036
[Exposed=(Window, Worker)]
2137
interface Scheduler {
2238
Promise<any> postTask(SchedulerPostTaskCallback callback,
2339
optional SchedulerPostTaskOptions options = {});
40+
Promise<undefined> yield(optional SchedulerYieldOptions options = {});
2441
};
2542

2643
[Exposed=(Window, Worker)]

interfaces/turtledove.idl

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ dictionary BiddingBrowserSignals {
204204
required long adComponentsLimit;
205205
required unsigned short multiBidLimit;
206206

207+
record<DOMString, DOMString> requestedSize;
207208
USVString topLevelSeller;
208209
sequence<PreviousWin> prevWinsMs;
209210
object wasmHelper;
@@ -218,6 +219,7 @@ dictionary ScoringBrowserSignals {
218219
required unsigned long biddingDurationMsec;
219220
required DOMString bidCurrency;
220221

222+
record<DOMString, DOMString> renderSize;
221223
unsigned long dataVersion;
222224
sequence<USVString> adComponents;
223225
boolean forDebuggingOnlyInCooldownOrLockout = false;

interfaces/webgpu.idl

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ enum GPUPowerPreference {
9292
interface GPUAdapter {
9393
[SameObject] readonly attribute GPUSupportedFeatures features;
9494
[SameObject] readonly attribute GPUSupportedLimits limits;
95+
[SameObject] readonly attribute GPUAdapterInfo info;
9596
readonly attribute boolean isFallbackAdapter;
9697

9798
Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
98-
Promise<GPUAdapterInfo> requestAdapterInfo();
9999
};
100100

101101
dictionary GPUDeviceDescriptor
@@ -117,6 +117,7 @@ enum GPUFeatureName {
117117
"rg11b10ufloat-renderable",
118118
"bgra8unorm-storage",
119119
"float32-filterable",
120+
"clip-distances",
120121
};
121122

122123
[Exposed=(Window, Worker), SecureContext]

interfaces/webnn.idl

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ interface MLGraphBuilder {
9090
// Create an operand for a graph constant.
9191
MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
9292

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);
9595

9696
// Compile the graph up to the specified output operands asynchronously.
9797
Promise<MLGraph> build(MLNamedOperands outputs);
@@ -200,7 +200,7 @@ partial interface MLGraphBuilder {
200200
MLOperand greaterOrEqual(MLOperand a, MLOperand b);
201201
MLOperand lesser(MLOperand a, MLOperand b);
202202
MLOperand lesserOrEqual(MLOperand a, MLOperand b);
203-
MLOperand not(MLOperand a);
203+
MLOperand logicalNot(MLOperand a);
204204
};
205205

206206
partial interface MLGraphBuilder {

interfaces/webrtc.idl

+4-3
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,10 @@ dictionary RTCIceParameters {
434434
DOMString password;
435435
};
436436

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;
440441
};
441442

442443
enum RTCIceGathererState {

interfaces/webxr-depth-sensing.idl

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ enum XRDepthUsage {
1010

1111
enum XRDepthDataFormat {
1212
"luminance-alpha",
13-
"float32"
13+
"float32",
14+
"unsigned-short",
1415
};
1516

1617
dictionary XRDepthStateInit {
@@ -50,6 +51,9 @@ partial interface XRFrame {
5051
[Exposed=Window]
5152
interface XRWebGLDepthInformation : XRDepthInformation {
5253
[SameObject] readonly attribute WebGLTexture texture;
54+
55+
readonly attribute XRTextureType textureType;
56+
readonly attribute unsigned long? imageIndex;
5357
};
5458

5559
partial interface XRWebGLBinding {

0 commit comments

Comments
 (0)