Sync interfaces/ with @webref/idl 3.41.2 (#43230)
Co-authored-by: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com>
diff --git a/interfaces/clipboard-apis.idl b/interfaces/clipboard-apis.idl
index 51d5af1..594484c 100644
--- a/interfaces/clipboard-apis.idl
+++ b/interfaces/clipboard-apis.idl
@@ -42,12 +42,16 @@
[SecureContext, Exposed=Window]
interface Clipboard : EventTarget {
- Promise<ClipboardItems> read();
+ Promise<ClipboardItems> read(optional ClipboardUnsanitizedFormats formats = {});
Promise<DOMString> readText();
Promise<undefined> write(ClipboardItems data);
Promise<undefined> writeText(DOMString data);
};
+dictionary ClipboardUnsanitizedFormats {
+ sequence<DOMString> unsanitized;
+};
+
dictionary ClipboardPermissionDescriptor : PermissionDescriptor {
boolean allowWithoutGesture = false;
};
diff --git a/interfaces/encrypted-media.idl b/interfaces/encrypted-media.idl
index 24db48e..f5d5aa8 100644
--- a/interfaces/encrypted-media.idl
+++ b/interfaces/encrypted-media.idl
@@ -43,9 +43,26 @@
[Exposed=Window, SecureContext] interface MediaKeys {
MediaKeySession createSession (optional MediaKeySessionType sessionType = "temporary");
+ Promise<MediaKeyStatus> getStatusForPolicy (optional MediaKeysPolicy policy = {});
Promise<boolean> setServerCertificate (BufferSource serverCertificate);
};
+dictionary MediaKeysPolicy {
+ HDCPVersion minHdcpVersion;
+};
+
+enum HDCPVersion {
+ "1.0",
+ "1.1",
+ "1.2",
+ "1.3",
+ "1.4",
+ "2.0",
+ "2.1",
+ "2.2",
+ "2.3",
+};
+
enum MediaKeySessionClosedReason {
"internal-error",
"closed-by-application",
diff --git a/interfaces/html.idl b/interfaces/html.idl
index bfda8a9..b7501fe 100644
--- a/interfaces/html.idl
+++ b/interfaces/html.idl
@@ -1001,6 +1001,8 @@
boolean reportValidity();
undefined setCustomValidity(DOMString error);
+ undefined showPicker();
+
readonly attribute NodeList labels;
};
diff --git a/interfaces/longtasks.idl b/interfaces/longtasks.idl
index c0aaa7a..064d107 100644
--- a/interfaces/longtasks.idl
+++ b/interfaces/longtasks.idl
@@ -17,3 +17,12 @@
readonly attribute DOMString containerName;
[Default] object toJSON();
};
+
+[Exposed=Window]
+interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
+ readonly attribute DOMHighResTimeStamp renderStart;
+ readonly attribute DOMHighResTimeStamp styleAndLayoutStart;
+ readonly attribute DOMHighResTimeStamp blockingDuration;
+
+ [Default] object toJSON();
+};
diff --git a/interfaces/orientation-event.idl b/interfaces/orientation-event.idl
index a93d465..965e833 100644
--- a/interfaces/orientation-event.idl
+++ b/interfaces/orientation-event.idl
@@ -29,10 +29,6 @@
[SecureContext] attribute EventHandler ondeviceorientationabsolute;
};
-partial interface Window {
- [SecureContext] attribute EventHandler ondevicemotion;
-};
-
[Exposed=Window, SecureContext]
interface DeviceMotionEventAcceleration {
readonly attribute double? x;
@@ -47,6 +43,10 @@
readonly attribute double? gamma;
};
+partial interface Window {
+ [SecureContext] attribute EventHandler ondevicemotion;
+};
+
[Exposed=Window, SecureContext]
interface DeviceMotionEvent : Event {
constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {});
diff --git a/interfaces/private-network-access.idl b/interfaces/private-network-access.idl
index 19423ba..65b5876 100644
--- a/interfaces/private-network-access.idl
+++ b/interfaces/private-network-access.idl
@@ -3,13 +3,17 @@
// (https://github.com/w3c/webref)
// Source: Private Network Access (https://wicg.github.io/private-network-access/)
+enum IPAddressSpace { "public", "private", "local" };
+
dictionary PrivateNetworkAccessPermissionDescriptor
: PermissionDescriptor {
DOMString id;
};
partial dictionary RequestInit {
- RequestTargetAddressSpace targetAddressSpace;
+ IPAddressSpace targetAddressSpace;
};
-enum RequestTargetAddressSpace { "private", "local" };
+partial interface Request {
+ readonly attribute IPAddressSpace targetAddressSpace;
+};
diff --git a/interfaces/storage-buckets.idl b/interfaces/storage-buckets.idl
index 1a83988..79f6c94 100644
--- a/interfaces/storage-buckets.idl
+++ b/interfaces/storage-buckets.idl
@@ -20,8 +20,8 @@
dictionary StorageBucketOptions {
boolean persisted = false;
- unsigned long long? quota = null;
- DOMHighResTimeStamp? expires = null;
+ unsigned long long? quota;
+ DOMHighResTimeStamp? expires;
};
[Exposed=(Window,Worker),
diff --git a/interfaces/streams.idl b/interfaces/streams.idl
index 6f0f3a6..ab9be03 100644
--- a/interfaces/streams.idl
+++ b/interfaces/streams.idl
@@ -84,11 +84,15 @@
interface ReadableStreamBYOBReader {
constructor(ReadableStream stream);
- Promise<ReadableStreamReadResult> read(ArrayBufferView view);
+ Promise<ReadableStreamReadResult> read(ArrayBufferView view, optional ReadableStreamBYOBReaderReadOptions options = {});
undefined releaseLock();
};
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
+dictionary ReadableStreamBYOBReaderReadOptions {
+ [EnforceRange] unsigned long long min = 1;
+};
+
[Exposed=*]
interface ReadableStreamDefaultController {
readonly attribute unrestricted double? desiredSize;
diff --git a/interfaces/webauthn.idl b/interfaces/webauthn.idl
index f210c6c..e28355e 100644
--- a/interfaces/webauthn.idl
+++ b/interfaces/webauthn.idl
@@ -1,7 +1,7 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
-// Source: Web Authentication: An API for accessing Public Key Credentials - Level (https://w3c.github.io/webauthn/)
+// Source: Web Authentication: An API for accessing Public Key Credentials - Level 3 (https://w3c.github.io/webauthn/)
[SecureContext, Exposed=Window]
interface PublicKeyCredential : Credential {
@@ -364,19 +364,20 @@
UvmEntries uvm;
};
-dictionary AuthenticationExtensionsDevicePublicKeyInputs {
- DOMString attestation = "none";
+dictionary AuthenticationExtensionsSupplementalPubKeysInputs {
+ required sequence<DOMString> scopes;
+ DOMString attestation = "indirect";
sequence<DOMString> attestationFormats = [];
};
partial dictionary AuthenticationExtensionsClientInputs {
- AuthenticationExtensionsDevicePublicKeyInputs devicePubKey;
+ AuthenticationExtensionsSupplementalPubKeysInputs supplementalPubKeys;
};
-dictionary AuthenticationExtensionsDevicePublicKeyOutputs {
- ArrayBuffer signature;
+dictionary AuthenticationExtensionsSupplementalPubKeysOutputs {
+ sequence<ArrayBuffer> signatures;
};
partial dictionary AuthenticationExtensionsClientOutputs {
- AuthenticationExtensionsDevicePublicKeyOutputs devicePubKey;
+ AuthenticationExtensionsSupplementalPubKeysOutputs supplementalPubKeys;
};
diff --git a/interfaces/webgpu.idl b/interfaces/webgpu.idl
index 98fb84c..373d51d 100644
--- a/interfaces/webgpu.idl
+++ b/interfaces/webgpu.idl
@@ -636,7 +636,7 @@
dictionary GPUProgrammableStage {
required GPUShaderModule module;
- required USVString entryPoint;
+ USVString entryPoint;
record<USVString, GPUPipelineConstantValue> constants;
};
@@ -939,8 +939,6 @@
optional GPUSize64 offset = 0,
optional GPUSize64 size);
- undefined writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
-
undefined resolveQuerySet(
GPUQuerySet querySet,
GPUSize32 firstQuery,
diff --git a/interfaces/webtransport.idl b/interfaces/webtransport.idl
index b9deae2..86178a4 100644
--- a/interfaces/webtransport.idl
+++ b/interfaces/webtransport.idl
@@ -73,6 +73,7 @@
dictionary WebTransportSendStreamOptions {
WebTransportSendGroup? sendGroup = null;
long long sendOrder = 0;
+ boolean waitUntilAvailable = false;
};
dictionary WebTransportConnectionStats {