diff options
Diffstat (limited to 'testing/web-platform/tests/interfaces')
29 files changed, 245 insertions, 120 deletions
diff --git a/testing/web-platform/tests/interfaces/DOM-Parsing.idl b/testing/web-platform/tests/interfaces/DOM-Parsing.idl index d0d84ab697..af26260793 100644 --- a/testing/web-platform/tests/interfaces/DOM-Parsing.idl +++ b/testing/web-platform/tests/interfaces/DOM-Parsing.idl @@ -8,19 +8,3 @@ interface XMLSerializer { constructor(); DOMString serializeToString(Node root); }; - -interface mixin InnerHTML { - [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML; -}; - -Element includes InnerHTML; -ShadowRoot includes InnerHTML; - -partial interface Element { - [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerHTML; - [CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text); -}; - -partial interface Range { - [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment); -}; diff --git a/testing/web-platform/tests/interfaces/compute-pressure.idl b/testing/web-platform/tests/interfaces/compute-pressure.idl index c4dcb90af4..a90febffc3 100644 --- a/testing/web-platform/tests/interfaces/compute-pressure.idl +++ b/testing/web-platform/tests/interfaces/compute-pressure.idl @@ -14,9 +14,9 @@ callback PressureUpdateCallback = undefined ( [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext] interface PressureObserver { - constructor(PressureUpdateCallback callback, optional PressureObserverOptions options = {}); + constructor(PressureUpdateCallback callback); - Promise<undefined> observe(PressureSource source); + Promise<undefined> observe(PressureSource source, optional PressureObserverOptions options = {}); undefined unobserve(PressureSource source); undefined disconnect(); sequence<PressureRecord> takeRecords(); diff --git a/testing/web-platform/tests/interfaces/css-anchor-position.idl b/testing/web-platform/tests/interfaces/css-anchor-position.idl index b79e3fce89..5eeaa030b8 100644 --- a/testing/web-platform/tests/interfaces/css-anchor-position.idl +++ b/testing/web-platform/tests/interfaces/css-anchor-position.idl @@ -6,5 +6,79 @@ [Exposed=Window] interface CSSPositionTryRule : CSSRule { readonly attribute CSSOMString name; - [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; + [SameObject, PutForwards=cssText] readonly attribute CSSPositionTryDescriptors style; +}; + +[Exposed=Window] +interface CSSPositionTryDescriptors : CSSStyleDeclaration { + attribute CSSOMString margin; + attribute CSSOMString marginTop; + attribute CSSOMString marginRight; + attribute CSSOMString marginBottom; + attribute CSSOMString marginLeft; + attribute CSSOMString marginBlock; + attribute CSSOMString marginBlockStart; + attribute CSSOMString marginBlockEnd; + attribute CSSOMString marginInline; + attribute CSSOMString marginInlineStart; + attribute CSSOMString marginInlineEnd; + attribute CSSOMString margin-top; + attribute CSSOMString margin-right; + attribute CSSOMString margin-bottom; + attribute CSSOMString margin-left; + attribute CSSOMString margin-block; + attribute CSSOMString margin-block-start; + attribute CSSOMString margin-block-end; + attribute CSSOMString margin-inline; + attribute CSSOMString margin-inline-start; + attribute CSSOMString margin-inline-end; + attribute CSSOMString inset; + attribute CSSOMString insetBlock; + attribute CSSOMString insetBlockStart; + attribute CSSOMString insetBlockEnd; + attribute CSSOMString insetInline; + attribute CSSOMString insetInlineStart; + attribute CSSOMString insetInlineEnd; + attribute CSSOMString top; + attribute CSSOMString left; + attribute CSSOMString right; + attribute CSSOMString bottom; + attribute CSSOMString inset-block; + attribute CSSOMString inset-block-start; + attribute CSSOMString inset-block-end; + attribute CSSOMString inset-inline; + attribute CSSOMString inset-inline-start; + attribute CSSOMString inset-inline-end; + attribute CSSOMString width; + attribute CSSOMString minWidth; + attribute CSSOMString maxWidth; + attribute CSSOMString height; + attribute CSSOMString minHeight; + attribute CSSOMString maxHeight; + attribute CSSOMString blockSize; + attribute CSSOMString minBlockSize; + attribute CSSOMString maxBlockSize; + attribute CSSOMString inlineSize; + attribute CSSOMString minInlineSize; + attribute CSSOMString maxInlineSize; + attribute CSSOMString min-width; + attribute CSSOMString max-width; + attribute CSSOMString min-height; + attribute CSSOMString max-height; + attribute CSSOMString block-size; + attribute CSSOMString min-block-size; + attribute CSSOMString max-block-size; + attribute CSSOMString inline-size; + attribute CSSOMString min-inline-size; + attribute CSSOMString max-inline-size; + attribute CSSOMString placeSelf; + attribute CSSOMString alignSelf; + attribute CSSOMString justifySelf; + attribute CSSOMString place-self; + attribute CSSOMString align-self; + attribute CSSOMString justify-self; + attribute CSSOMString positionAnchor; + attribute CSSOMString position-anchor; + attribute CSSOMString insetArea; + attribute CSSOMString inset-area; }; diff --git a/testing/web-platform/tests/interfaces/css-nesting.idl b/testing/web-platform/tests/interfaces/css-nesting.idl new file mode 100644 index 0000000000..58d3247f90 --- /dev/null +++ b/testing/web-platform/tests/interfaces/css-nesting.idl @@ -0,0 +1,9 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Nesting Module (https://drafts.csswg.org/css-nesting-1/) + +[Exposed=Window] +interface CSSNestRule : CSSGroupingRule { + [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style; +}; diff --git a/testing/web-platform/tests/interfaces/css-properties-values-api.idl b/testing/web-platform/tests/interfaces/css-properties-values-api.idl index eb7d7b027e..418e78375b 100644 --- a/testing/web-platform/tests/interfaces/css-properties-values-api.idl +++ b/testing/web-platform/tests/interfaces/css-properties-values-api.idl @@ -16,8 +16,8 @@ partial namespace CSS { [Exposed=Window] interface CSSPropertyRule : CSSRule { - readonly attribute CSSOMString name; - readonly attribute CSSOMString syntax; - readonly attribute boolean inherits; - readonly attribute CSSOMString? initialValue; + readonly attribute CSSOMString name; + readonly attribute CSSOMString syntax; + readonly attribute boolean inherits; + readonly attribute CSSOMString? initialValue; }; diff --git a/testing/web-platform/tests/interfaces/css-view-transitions-2.idl b/testing/web-platform/tests/interfaces/css-view-transitions-2.idl index 41337f4e1e..559870751a 100644 --- a/testing/web-platform/tests/interfaces/css-view-transitions-2.idl +++ b/testing/web-platform/tests/interfaces/css-view-transitions-2.idl @@ -10,14 +10,9 @@ partial interface CSSRule { enum ViewTransitionNavigation { "auto", "none" }; [Exposed=Window] -interface CSSViewTransitionTypeSet { - readonly setlike<CSSOMString>; -}; - -[Exposed=Window] interface CSSViewTransitionRule : CSSRule { readonly attribute ViewTransitionNavigation navigation; - readonly attribute CSSViewTransitionTypeSet types; + [SameObject] readonly attribute FrozenArray<CSSOMString> types; }; [Exposed=Window] diff --git a/testing/web-platform/tests/interfaces/device-attributes.idl b/testing/web-platform/tests/interfaces/device-attributes.idl new file mode 100644 index 0000000000..cf62523ad8 --- /dev/null +++ b/testing/web-platform/tests/interfaces/device-attributes.idl @@ -0,0 +1,13 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Device Attributes API (https://wicg.github.io/WebApiDevice/device_attributes/) + +partial interface NavigatorManagedData { + // Device Attributes API. + Promise<DOMString> getAnnotatedAssetId(); + Promise<DOMString> getAnnotatedLocation(); + Promise<DOMString> getDirectoryId(); + Promise<DOMString> getHostname(); + Promise<DOMString> getSerialNumber(); +}; diff --git a/testing/web-platform/tests/interfaces/digital-identities.idl b/testing/web-platform/tests/interfaces/digital-identities.idl index 9027ce61af..2d1b720850 100644 --- a/testing/web-platform/tests/interfaces/digital-identities.idl +++ b/testing/web-platform/tests/interfaces/digital-identities.idl @@ -17,11 +17,11 @@ dictionary DigitalCredentialRequestOptions { dictionary IdentityRequestProvider { required DOMString protocol; - required DOMString request; + required object request; }; [Exposed=Window, SecureContext] interface DigitalCredential : Credential { readonly attribute DOMString protocol; - readonly attribute DOMString data; + [SameObject] readonly attribute Uint8Array data; }; diff --git a/testing/web-platform/tests/interfaces/document-picture-in-picture.idl b/testing/web-platform/tests/interfaces/document-picture-in-picture.idl index 888855b38f..ed34b3c216 100644 --- a/testing/web-platform/tests/interfaces/document-picture-in-picture.idl +++ b/testing/web-platform/tests/interfaces/document-picture-in-picture.idl @@ -20,7 +20,7 @@ interface DocumentPictureInPicture : EventTarget { dictionary DocumentPictureInPictureOptions { [EnforceRange] unsigned long long width = 0; [EnforceRange] unsigned long long height = 0; - boolean allowReturnToOpener = true; + boolean disallowReturnToOpener = false; }; [Exposed=Window, SecureContext] diff --git a/testing/web-platform/tests/interfaces/dom.idl b/testing/web-platform/tests/interfaces/dom.idl index cf2d4e4adc..72d61f5cfd 100644 --- a/testing/web-platform/tests/interfaces/dom.idl +++ b/testing/web-platform/tests/interfaces/dom.idl @@ -120,9 +120,9 @@ interface mixin ParentNode { readonly attribute Element? lastElementChild; readonly attribute unsigned long childElementCount; - [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes); - [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes); - [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes); + [CEReactions, Unscopable] undefined prepend((Node or TrustedScript or DOMString)... nodes); + [CEReactions, Unscopable] undefined append((Node or TrustedScript or DOMString)... nodes); + [CEReactions, Unscopable] undefined replaceChildren((Node or TrustedScript or DOMString)... nodes); Element? querySelector(DOMString selectors); [NewObject] NodeList querySelectorAll(DOMString selectors); @@ -139,9 +139,9 @@ Element includes NonDocumentTypeChildNode; CharacterData includes NonDocumentTypeChildNode; interface mixin ChildNode { - [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes); - [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes); - [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes); + [CEReactions, Unscopable] undefined before((Node or TrustedScript or DOMString)... nodes); + [CEReactions, Unscopable] undefined after((Node or TrustedScript or DOMString)... nodes); + [CEReactions, Unscopable] undefined replaceWith((Node or TrustedScript or DOMString)... nodes); [CEReactions, Unscopable] undefined remove(); }; DocumentType includes ChildNode; @@ -340,6 +340,7 @@ interface ShadowRoot : DocumentFragment { readonly attribute boolean delegatesFocus; readonly attribute SlotAssignmentMode slotAssignment; readonly attribute boolean clonable; + readonly attribute boolean serializable; readonly attribute Element host; attribute EventHandler onslotchange; }; @@ -398,6 +399,7 @@ dictionary ShadowRootInit { boolean delegatesFocus = false; SlotAssignmentMode slotAssignment = "named"; boolean clonable = false; + boolean serializable = false; }; [Exposed=Window, diff --git a/testing/web-platform/tests/interfaces/gamepad.idl b/testing/web-platform/tests/interfaces/gamepad.idl index 024e5ea58c..d922d7b80b 100644 --- a/testing/web-platform/tests/interfaces/gamepad.idl +++ b/testing/web-platform/tests/interfaces/gamepad.idl @@ -44,7 +44,8 @@ enum GamepadHapticsResult { }; enum GamepadHapticEffectType { - "dual-rumble" + "dual-rumble", + "trigger-rumble" }; dictionary GamepadEffectParameters { @@ -52,6 +53,8 @@ dictionary GamepadEffectParameters { unsigned long long startDelay = 0; double strongMagnitude = 0.0; double weakMagnitude = 0.0; + double leftTrigger = 0.0; + double rightTrigger = 0.0; }; [Exposed=Window] diff --git a/testing/web-platform/tests/interfaces/geolocation.idl b/testing/web-platform/tests/interfaces/geolocation.idl index 4b971f097b..8c0acfc6cc 100644 --- a/testing/web-platform/tests/interfaces/geolocation.idl +++ b/testing/web-platform/tests/interfaces/geolocation.idl @@ -42,6 +42,7 @@ dictionary PositionOptions { interface GeolocationPosition { readonly attribute GeolocationCoordinates coords; readonly attribute EpochTimeStamp timestamp; + [Default] object toJSON(); }; [Exposed=Window, SecureContext] @@ -53,6 +54,7 @@ interface GeolocationCoordinates { readonly attribute double? altitudeAccuracy; readonly attribute double? heading; readonly attribute double? speed; + [Default] object toJSON(); }; [Exposed=Window] diff --git a/testing/web-platform/tests/interfaces/html.idl b/testing/web-platform/tests/interfaces/html.idl index 2f97e4dd60..aad8994b87 100644 --- a/testing/web-platform/tests/interfaces/html.idl +++ b/testing/web-platform/tests/interfaces/html.idl @@ -1245,6 +1245,7 @@ interface HTMLTemplateElement : HTMLElement { [CEReactions] attribute DOMString shadowRootMode; [CEReactions] attribute boolean shadowRootDelegatesFocus; [CEReactions] attribute boolean shadowRootClonable; + [CEReactions] attribute boolean shadowRootSerializable; }; [Exposed=Window] @@ -1579,7 +1580,6 @@ interface OffscreenCanvas : EventTarget { [Exposed=(Window,Worker)] interface OffscreenCanvasRenderingContext2D { - undefined commit(); readonly attribute OffscreenCanvas canvas; }; @@ -2292,6 +2292,27 @@ interface mixin WindowOrWorkerGlobalScope { Window includes WindowOrWorkerGlobalScope; WorkerGlobalScope includes WindowOrWorkerGlobalScope; +partial interface Element { + [CEReactions] undefined setHTMLUnsafe(HTMLString html); + DOMString getHTML(optional GetHTMLOptions options = {}); + + [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML; + [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML; + [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString string); +}; + +partial interface ShadowRoot { + [CEReactions] undefined setHTMLUnsafe(HTMLString html); + DOMString getHTML(optional GetHTMLOptions options = {}); + + [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML; +}; + +dictionary GetHTMLOptions { + boolean serializableShadowRoots = false; + sequence<ShadowRoot> shadowRoots = []; +}; + [Exposed=Window] interface DOMParser { constructor(); @@ -2307,12 +2328,8 @@ enum DOMParserSupportedType { "image/svg+xml" }; -partial interface Element { - [CEReactions] undefined setHTMLUnsafe(HTMLString html); -}; - -partial interface ShadowRoot { - [CEReactions] undefined setHTMLUnsafe(HTMLString html); +partial interface Range { + [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString string); }; [Exposed=Window] diff --git a/testing/web-platform/tests/interfaces/mediasession.idl b/testing/web-platform/tests/interfaces/mediasession.idl index 8e9a21aff0..e6c8e46462 100644 --- a/testing/web-platform/tests/interfaces/mediasession.idl +++ b/testing/web-platform/tests/interfaces/mediasession.idl @@ -56,6 +56,7 @@ interface MediaMetadata { attribute DOMString artist; attribute DOMString album; attribute FrozenArray<MediaImage> artwork; + [SameObject] readonly attribute FrozenArray<ChapterInformation> chapterInfo; }; dictionary MediaMetadataInit { @@ -63,6 +64,20 @@ dictionary MediaMetadataInit { DOMString artist = ""; DOMString album = ""; sequence<MediaImage> artwork = []; + sequence<ChapterInformationInit> chapterInfo = []; +}; + +[Exposed=Window] +interface ChapterInformation { + readonly attribute DOMString title; + readonly attribute double startTime; + [SameObject] readonly attribute FrozenArray<MediaImage> artwork; +}; + +dictionary ChapterInformationInit { + DOMString title = ""; + double startTime = 0; + sequence<MediaImage> artwork = []; }; dictionary MediaImage { diff --git a/testing/web-platform/tests/interfaces/sanitizer-api.idl b/testing/web-platform/tests/interfaces/sanitizer-api.idl index 599d8f82ea..8f5c667973 100644 --- a/testing/web-platform/tests/interfaces/sanitizer-api.idl +++ b/testing/web-platform/tests/interfaces/sanitizer-api.idl @@ -3,19 +3,15 @@ // (https://github.com/w3c/webref) // Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/) -partial interface Element { - [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); - [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {}); +dictionary SetHTMLOptions { + (Sanitizer or SanitizerConfig) sanitizer = {}; }; -partial interface ShadowRoot { - [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); - [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {}); -}; - -partial interface Document { - static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); - static Document parseHTML(DOMString html, optional SanitizerConfig config = {}); +[Exposed=(Window,Worker)] +interface Sanitizer { + constructor(optional SanitizerConfig config = {}); + SanitizerConfig get(); + SanitizerConfig getUnsafe(); }; dictionary SanitizerElementNamespace { diff --git a/testing/web-platform/tests/interfaces/service-workers.idl b/testing/web-platform/tests/interfaces/service-workers.idl index c740e1098a..1ddc6d71d8 100644 --- a/testing/web-platform/tests/interfaces/service-workers.idl +++ b/testing/web-platform/tests/interfaces/service-workers.idl @@ -183,6 +183,7 @@ dictionary RouterCondition { RunningStatus runningStatus; sequence<RouterCondition> _or; + RouterCondition not; }; typedef (RouterSourceDict or RouterSourceEnum) RouterSource; diff --git a/testing/web-platform/tests/interfaces/shape-detection-api.idl b/testing/web-platform/tests/interfaces/shape-detection-api.idl index 4fc1f085ea..24d3b98085 100644 --- a/testing/web-platform/tests/interfaces/shape-detection-api.idl +++ b/testing/web-platform/tests/interfaces/shape-detection-api.idl @@ -17,11 +17,11 @@ dictionary FaceDetectorOptions { dictionary DetectedFace { required DOMRectReadOnly boundingBox; - required FrozenArray<Landmark>? landmarks; + required sequence<Landmark>? landmarks; }; dictionary Landmark { - required FrozenArray<Point2D> locations; + required sequence<Point2D> locations; LandmarkType type; }; @@ -48,7 +48,7 @@ dictionary DetectedBarcode { required DOMRectReadOnly boundingBox; required DOMString rawValue; required BarcodeFormat format; - required FrozenArray<Point2D> cornerPoints; + required sequence<Point2D> cornerPoints; }; enum BarcodeFormat { diff --git a/testing/web-platform/tests/interfaces/shared-storage.idl b/testing/web-platform/tests/interfaces/shared-storage.idl index edbe2c2bcc..c40344e74d 100644 --- a/testing/web-platform/tests/interfaces/shared-storage.idl +++ b/testing/web-platform/tests/interfaces/shared-storage.idl @@ -3,40 +3,30 @@ // (https://github.com/w3c/webref) // Source: Shared Storage API (https://wicg.github.io/shared-storage/) +typedef (USVString or FencedFrameConfig) SharedStorageResponse; + [Exposed=(Window)] interface SharedStorageWorklet : Worklet { + Promise<SharedStorageResponse> selectURL(DOMString name, + FrozenArray<SharedStorageUrlWithMetadata> urls, + optional SharedStorageRunOperationMethodOptions options = {}); + Promise<any> run(DOMString name, + optional SharedStorageRunOperationMethodOptions options = {}); }; +callback RunFunctionForSharedStorageSelectURLOperation = Promise<unsigned long>(sequence<USVString> urls, optional any data); + [Exposed=SharedStorageWorklet, Global=SharedStorageWorklet] interface SharedStorageWorkletGlobalScope : WorkletGlobalScope { undefined register(DOMString name, - SharedStorageOperationConstructor operationCtor); + Function operationCtor); readonly attribute WorkletSharedStorage sharedStorage; }; -callback SharedStorageOperationConstructor = - SharedStorageOperation(optional SharedStorageRunOperationMethodOptions options); - -[Exposed=SharedStorageWorklet] -interface SharedStorageOperation { -}; - -dictionary SharedStorageRunOperationMethodOptions { - object data; - boolean resolveToConfig = false; - boolean keepAlive = false; -}; - -[Exposed=SharedStorageWorklet] -interface SharedStorageRunOperation : SharedStorageOperation { - Promise<undefined> run(object data); -}; - -[Exposed=SharedStorageWorklet] -interface SharedStorageSelectURLOperation : SharedStorageOperation { - Promise<long> run(object data, - FrozenArray<SharedStorageUrlWithMetadata> urls); +dictionary SharedStorageUrlWithMetadata { + required USVString url; + object reportingMetadata; }; [Exposed=(Window,SharedStorageWorklet)] @@ -54,22 +44,23 @@ dictionary SharedStorageSetMethodOptions { boolean ignoreIfPresent = false; }; -typedef (USVString or FencedFrameConfig) SharedStorageResponse; - [Exposed=(Window)] interface WindowSharedStorage : SharedStorage { - Promise<any> run(DOMString name, - optional SharedStorageRunOperationMethodOptions options = {}); Promise<SharedStorageResponse> selectURL(DOMString name, FrozenArray<SharedStorageUrlWithMetadata> urls, optional SharedStorageRunOperationMethodOptions options = {}); + Promise<any> run(DOMString name, + optional SharedStorageRunOperationMethodOptions options = {}); + + Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional WorkletOptions options = {}); readonly attribute SharedStorageWorklet worklet; }; -dictionary SharedStorageUrlWithMetadata { - required USVString url; - object reportingMetadata; +dictionary SharedStorageRunOperationMethodOptions { + object data; + boolean resolveToConfig = false; + boolean keepAlive = false; }; partial interface Window { diff --git a/testing/web-platform/tests/interfaces/text-detection-api.idl b/testing/web-platform/tests/interfaces/text-detection-api.idl index 95b642749f..b6745b1875 100644 --- a/testing/web-platform/tests/interfaces/text-detection-api.idl +++ b/testing/web-platform/tests/interfaces/text-detection-api.idl @@ -14,5 +14,5 @@ dictionary DetectedText { required DOMRectReadOnly boundingBox; required DOMString rawValue; - required FrozenArray<Point2D> cornerPoints; + required sequence<Point2D> cornerPoints; }; diff --git a/testing/web-platform/tests/interfaces/trusted-types.idl b/testing/web-platform/tests/interfaces/trusted-types.idl index db5bd635cf..a0f88e4e6c 100644 --- a/testing/web-platform/tests/interfaces/trusted-types.idl +++ b/testing/web-platform/tests/interfaces/trusted-types.idl @@ -32,12 +32,12 @@ interface TrustedScriptURL { DOMString? getAttributeType( DOMString tagName, DOMString attribute, - optional DOMString elementNs = "", - optional DOMString attrNs = ""); + optional DOMString? elementNs = "", + optional DOMString? attrNs = ""); DOMString? getPropertyType( DOMString tagName, DOMString property, - optional DOMString elementNs = ""); + optional DOMString? elementNs = ""); readonly attribute TrustedTypePolicy? defaultPolicy; }; diff --git a/testing/web-platform/tests/interfaces/turtledove.idl b/testing/web-platform/tests/interfaces/turtledove.idl index 2547e1fb54..39e90ddae1 100644 --- a/testing/web-platform/tests/interfaces/turtledove.idl +++ b/testing/web-platform/tests/interfaces/turtledove.idl @@ -82,6 +82,7 @@ dictionary AuctionAdConfig { Promise<record<USVString, any>> perBuyerSignals; Promise<record<USVString, unsigned long long>> perBuyerTimeouts; Promise<record<USVString, unsigned long long>> perBuyerCumulativeTimeouts; + unsigned long long reportingTimeout; USVString sellerCurrency; Promise<record<USVString, USVString>> perBuyerCurrencies; record<USVString, unsigned short> perBuyerGroupLimits; diff --git a/testing/web-platform/tests/interfaces/wasm-js-api.idl b/testing/web-platform/tests/interfaces/wasm-js-api.idl index 0d4384251d..b4f723d050 100644 --- a/testing/web-platform/tests/interfaces/wasm-js-api.idl +++ b/testing/web-platform/tests/interfaces/wasm-js-api.idl @@ -62,6 +62,8 @@ dictionary MemoryDescriptor { interface Memory { constructor(MemoryDescriptor descriptor); unsigned long grow([EnforceRange] unsigned long delta); + ArrayBuffer toFixedLengthBuffer(); + ArrayBuffer toResizableBuffer(); readonly attribute ArrayBuffer buffer; }; diff --git a/testing/web-platform/tests/interfaces/webcodecs.idl b/testing/web-platform/tests/interfaces/webcodecs.idl index 371546eb0d..c754b2b036 100644 --- a/testing/web-platform/tests/interfaces/webcodecs.idl +++ b/testing/web-platform/tests/interfaces/webcodecs.idl @@ -371,6 +371,8 @@ dictionary VideoFrameBufferInit { VideoColorSpaceInit colorSpace; sequence<ArrayBuffer> transfer = []; + + VideoFrameMetadata metadata; }; dictionary VideoFrameMetadata { @@ -380,6 +382,8 @@ dictionary VideoFrameMetadata { dictionary VideoFrameCopyToOptions { DOMRectInit rect; sequence<PlaneLayout> layout; + VideoPixelFormat format; + PredefinedColorSpace colorSpace; }; dictionary PlaneLayout { diff --git a/testing/web-platform/tests/interfaces/webgl1.idl b/testing/web-platform/tests/interfaces/webgl1.idl index 1b711e1a4c..655c294fc1 100644 --- a/testing/web-platform/tests/interfaces/webgl1.idl +++ b/testing/web-platform/tests/interfaces/webgl1.idl @@ -37,6 +37,7 @@ dictionary WebGLContextAttributes { [Exposed=(Window,Worker)] interface WebGLObject { + attribute USVString label; }; [Exposed=(Window,Worker)] diff --git a/testing/web-platform/tests/interfaces/webidl.idl b/testing/web-platform/tests/interfaces/webidl.idl index dff46c557c..f3db91096a 100644 --- a/testing/web-platform/tests/interfaces/webidl.idl +++ b/testing/web-platform/tests/interfaces/webidl.idl @@ -6,7 +6,7 @@ typedef (Int8Array or Int16Array or Int32Array or Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or BigInt64Array or BigUint64Array or - Float32Array or Float64Array or DataView) ArrayBufferView; + Float16Array or Float32Array or Float64Array or DataView) ArrayBufferView; typedef (ArrayBufferView or ArrayBuffer) BufferSource; typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource; diff --git a/testing/web-platform/tests/interfaces/webnn.idl b/testing/web-platform/tests/interfaces/webnn.idl index 0b8ea7cb34..9af2879214 100644 --- a/testing/web-platform/tests/interfaces/webnn.idl +++ b/testing/web-platform/tests/interfaces/webnn.idl @@ -64,11 +64,7 @@ enum MLOperandDataType { }; dictionary MLOperandDescriptor { - // The operand type. required MLOperandDataType dataType; - - // The dimensions field is empty for scalar operands, - // and non-empty for tensor operands. sequence<[EnforceRange] unsigned long> dimensions = []; }; @@ -122,7 +118,7 @@ dictionary MLBatchNormalizationOptions { partial interface MLGraphBuilder { MLOperand batchNormalization(MLOperand input, MLOperand mean, MLOperand variance, - optional MLBatchNormalizationOptions options = {}); + optional MLBatchNormalizationOptions options = {}); }; partial interface MLGraphBuilder { @@ -162,7 +158,9 @@ dictionary MLConv2dOptions { }; partial interface MLGraphBuilder { - MLOperand conv2d(MLOperand input, MLOperand filter, optional MLConv2dOptions options = {}); + MLOperand conv2d(MLOperand input, + MLOperand filter, + optional MLConv2dOptions options = {}); }; enum MLConvTranspose2dFilterOperandLayout { @@ -242,7 +240,14 @@ dictionary MLGatherOptions { }; partial interface MLGraphBuilder { - MLOperand gather(MLOperand input, MLOperand indices, optional MLGatherOptions options = {}); + MLOperand gather(MLOperand input, + MLOperand indices, + optional MLGatherOptions options = {}); +}; + +partial interface MLGraphBuilder { + MLOperand gelu(MLOperand input); + MLActivation gelu(); }; dictionary MLGemmOptions { @@ -329,7 +334,7 @@ dictionary MLInstanceNormalizationOptions { partial interface MLGraphBuilder { MLOperand instanceNormalization(MLOperand input, - optional MLInstanceNormalizationOptions options = {}); + optional MLInstanceNormalizationOptions options = {}); }; dictionary MLLayerNormalizationOptions { @@ -340,7 +345,8 @@ dictionary MLLayerNormalizationOptions { }; partial interface MLGraphBuilder { - MLOperand layerNormalization(MLOperand input, optional MLLayerNormalizationOptions options = {}); + MLOperand layerNormalization(MLOperand input, + optional MLLayerNormalizationOptions options = {}); }; dictionary MLLeakyReluOptions { @@ -509,17 +515,13 @@ partial interface MLGraphBuilder { }; partial interface MLGraphBuilder { - MLOperand softmax(MLOperand input); - MLActivation softmax(); -}; - -dictionary MLSoftplusOptions { - float steepness = 1; + MLOperand softmax(MLOperand input, unsigned long axis); + MLActivation softmax(unsigned long axis); }; partial interface MLGraphBuilder { - MLOperand softplus(MLOperand input, optional MLSoftplusOptions options = {}); - MLActivation softplus(optional MLSoftplusOptions options = {}); + MLOperand softplus(MLOperand input); + MLActivation softplus(); }; partial interface MLGraphBuilder { @@ -532,9 +534,10 @@ dictionary MLSplitOptions { }; partial interface MLGraphBuilder { - sequence<MLOperand> split(MLOperand input, - ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits, - optional MLSplitOptions options = {}); + sequence<MLOperand> split( + MLOperand input, + ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits, + optional MLSplitOptions options = {}); }; partial interface MLGraphBuilder { diff --git a/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl b/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl index 8a756702c7..0db2f2b9a8 100644 --- a/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl +++ b/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl @@ -78,10 +78,15 @@ dictionary RTCEncodedVideoFrameMetadata { DOMString mimeType; }; +dictionary RTCEncodedVideoFrameOptions { + RTCEncodedVideoFrameMetadata metadata; +}; + // New interfaces to define encoded video and audio frames. Will eventually // re-use or extend the equivalent defined in WebCodecs. [Exposed=(Window,DedicatedWorker), Serializable] interface RTCEncodedVideoFrame { + constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {}); readonly attribute RTCEncodedVideoFrameType type; attribute ArrayBuffer data; RTCEncodedVideoFrameMetadata getMetadata(); @@ -96,8 +101,13 @@ dictionary RTCEncodedAudioFrameMetadata { DOMString mimeType; }; +dictionary RTCEncodedAudioFrameOptions { + RTCEncodedAudioFrameMetadata metadata; +}; + [Exposed=(Window,DedicatedWorker), Serializable] interface RTCEncodedAudioFrame { + constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameOptions options = {}); attribute ArrayBuffer data; RTCEncodedAudioFrameMetadata getMetadata(); }; diff --git a/testing/web-platform/tests/interfaces/webrtc.idl b/testing/web-platform/tests/interfaces/webrtc.idl index e571abb527..65e7aa622c 100644 --- a/testing/web-platform/tests/interfaces/webrtc.idl +++ b/testing/web-platform/tests/interfaces/webrtc.idl @@ -368,6 +368,7 @@ interface RTCRtpReceiver { sequence<RTCRtpContributingSource> getContributingSources(); sequence<RTCRtpSynchronizationSource> getSynchronizationSources(); Promise<RTCStatsReport> getStats(); + attribute DOMHighResTimeStamp? jitterBufferTarget; }; dictionary RTCRtpContributingSource { @@ -387,7 +388,7 @@ interface RTCRtpTransceiver { attribute RTCRtpTransceiverDirection direction; readonly attribute RTCRtpTransceiverDirection? currentDirection; undefined stop(); - undefined setCodecPreferences(sequence<RTCRtpCodecCapability> codecs); + undefined setCodecPreferences(sequence<RTCRtpCodec> codecs); }; [Exposed=Window] @@ -434,8 +435,8 @@ dictionary RTCIceParameters { }; dictionary RTCIceCandidatePair { - RTCIceCandidate local; - RTCIceCandidate remote; + required RTCIceCandidate local; + required RTCIceCandidate remote; }; enum RTCIceGathererState { diff --git a/testing/web-platform/tests/interfaces/webxr.idl b/testing/web-platform/tests/interfaces/webxr.idl index 3b7f8a55b7..8e02fbd38a 100644 --- a/testing/web-platform/tests/interfaces/webxr.idl +++ b/testing/web-platform/tests/interfaces/webxr.idl @@ -178,6 +178,7 @@ interface XRInputSource { [SameObject] readonly attribute XRSpace targetRaySpace; [SameObject] readonly attribute XRSpace? gripSpace; [SameObject] readonly attribute FrozenArray<DOMString> profiles; + [SameObject] readonly attribute boolean skipRendering; }; [SecureContext, Exposed=Window] @@ -263,8 +264,8 @@ interface XRInputSourcesChangeEvent : Event { dictionary XRInputSourcesChangeEventInit : EventInit { required XRSession session; - required FrozenArray<XRInputSource> added; - required FrozenArray<XRInputSource> removed; + required sequence<XRInputSource> added; + required sequence<XRInputSource> removed; }; |