From 636bdfd12d4ef3294443d92852e8310b53fc0874 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:02:59 +0000 Subject: [PATCH] Bug 1887323 [wpt PR 45297] - Sync interfaces/ with @webref/idl 3.45.3, a=testonly Automatic update from web-platform-tests Sync interfaces/ with @webref/idl 3.45.3 (#45297) Co-authored-by: wpt-pr-bot -- wpt-commits: ac8b032c18666de37a8035fc219403d1811af1eb wpt-pr: 45297 --- .../tests/interfaces/compute-pressure.idl | 2 +- .../tests/interfaces/css-animations.idl | 2 +- .../tests/interfaces/css-fonts.idl | 35 +++++++- .../tests/interfaces/css-scroll-snap-2.idl | 31 ++----- .../interfaces/css-view-transitions-2.idl | 42 +++++---- .../tests/interfaces/cssom-view.idl | 1 + .../web-platform/tests/interfaces/cssom.idl | 24 ++++- .../web-platform/tests/interfaces/html.idl | 20 ++--- .../tests/interfaces/media-source.idl | 88 ++++++++++--------- .../tests/interfaces/sanitizer-api.idl | 69 +++++++++------ .../tests/interfaces/turtledove.idl | 13 +-- testing/web-platform/tests/interfaces/url.idl | 1 + .../webcodecs-opus-codec-registration.idl | 14 +++ .../tests/interfaces/webcodecs.idl | 4 +- 14 files changed, 216 insertions(+), 130 deletions(-) diff --git a/testing/web-platform/tests/interfaces/compute-pressure.idl b/testing/web-platform/tests/interfaces/compute-pressure.idl index 3e35dc4ee2d0..c4dcb90af432 100644 --- a/testing/web-platform/tests/interfaces/compute-pressure.idl +++ b/testing/web-platform/tests/interfaces/compute-pressure.idl @@ -33,5 +33,5 @@ interface PressureRecord { }; dictionary PressureObserverOptions { - double sampleRate = 1.0; + [EnforceRange] unsigned long sampleInterval = 0; }; diff --git a/testing/web-platform/tests/interfaces/css-animations.idl b/testing/web-platform/tests/interfaces/css-animations.idl index 6620e0156dc8..14a999806909 100644 --- a/testing/web-platform/tests/interfaces/css-animations.idl +++ b/testing/web-platform/tests/interfaces/css-animations.idl @@ -24,7 +24,7 @@ partial interface CSSRule { [Exposed=Window] interface CSSKeyframeRule : CSSRule { attribute CSSOMString keyText; - [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; + [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style; }; [Exposed=Window] diff --git a/testing/web-platform/tests/interfaces/css-fonts.idl b/testing/web-platform/tests/interfaces/css-fonts.idl index 7a917662b592..678f31323b81 100644 --- a/testing/web-platform/tests/interfaces/css-fonts.idl +++ b/testing/web-platform/tests/interfaces/css-fonts.idl @@ -3,9 +3,42 @@ // (https://github.com/w3c/webref) // Source: CSS Fonts Module Level 4 (https://drafts.csswg.org/css-fonts-4/) +[Exposed=Window] +interface CSSFontFaceDescriptors : CSSStyleDeclaration { + attribute [LegacyNullToEmptyString] CSSOMString src; + attribute [LegacyNullToEmptyString] CSSOMString fontFamily; + attribute [LegacyNullToEmptyString] CSSOMString font-family; + attribute [LegacyNullToEmptyString] CSSOMString fontStyle; + attribute [LegacyNullToEmptyString] CSSOMString font-style; + attribute [LegacyNullToEmptyString] CSSOMString fontWeight; + attribute [LegacyNullToEmptyString] CSSOMString font-weight; + attribute [LegacyNullToEmptyString] CSSOMString fontStretch; + attribute [LegacyNullToEmptyString] CSSOMString font-stretch; + attribute [LegacyNullToEmptyString] CSSOMString fontWidth; + attribute [LegacyNullToEmptyString] CSSOMString font-width; + attribute [LegacyNullToEmptyString] CSSOMString unicodeRange; + attribute [LegacyNullToEmptyString] CSSOMString unicode-range; + attribute [LegacyNullToEmptyString] CSSOMString fontFeatureSettings; + attribute [LegacyNullToEmptyString] CSSOMString font-feature-settings; + attribute [LegacyNullToEmptyString] CSSOMString fontVariationSettings; + attribute [LegacyNullToEmptyString] CSSOMString font-variation-settings; + attribute [LegacyNullToEmptyString] CSSOMString fontNamedInstance; + attribute [LegacyNullToEmptyString] CSSOMString font-named-instance; + attribute [LegacyNullToEmptyString] CSSOMString fontDisplay; + attribute [LegacyNullToEmptyString] CSSOMString font-display; + attribute [LegacyNullToEmptyString] CSSOMString fontLanguageOverride; + attribute [LegacyNullToEmptyString] CSSOMString font-language-override; + attribute [LegacyNullToEmptyString] CSSOMString ascentOverride; + attribute [LegacyNullToEmptyString] CSSOMString ascent-override; + attribute [LegacyNullToEmptyString] CSSOMString descentOverride; + attribute [LegacyNullToEmptyString] CSSOMString descent-override; + attribute [LegacyNullToEmptyString] CSSOMString lineGapOverride; + attribute [LegacyNullToEmptyString] CSSOMString line-gap-override; +}; + [Exposed=Window] interface CSSFontFaceRule : CSSRule { - readonly attribute CSSStyleDeclaration style; + readonly attribute CSSFontFaceDescriptors style; }; partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14; diff --git a/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl b/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl index 50cbf6940a6f..a346969c56a0 100644 --- a/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl +++ b/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl @@ -3,31 +3,14 @@ // (https://github.com/w3c/webref) // Source: CSS Scroll Snap Module Level 2 (https://drafts.csswg.org/css-scroll-snap-2/) +dictionary SnapEventInit : EventInit { + Node? snapTargetBlock; + Node? snapTargetInline; +}; + [Exposed=Window] interface SnapEvent : Event { constructor(DOMString type, optional SnapEventInit eventInitDict = {}); - readonly attribute EventTarget? target; - readonly attribute SnapTargetList snappedTargets; - readonly attribute SnapTargetList snapTargets; - readonly attribute boolean invokedProgrammatically; - readonly attribute boolean smoothlyScrolled; -}; - -[Exposed=Window] -interface SnapTargetList { - readonly attribute SnapTargetArray x; - readonly attribute SnapTargetArray y; -}; - -[Exposed=Window] -interface SnapTargetArray { - readonly attribute unsigned long length; - getter EventTarget? item (unsigned long index); -}; - -dictionary SnapEventInit : EventModifierInit { - sequence snappedTargetsX = []; - sequence snappedTargetsY = []; - sequence snapTargetsListX = []; - sequence snapTargetsListY = []; + readonly attribute Node? snapTargetBlock; + readonly attribute Node? snapTargetInline; }; 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 d1e4eeb11e58..41337f4e1e42 100644 --- a/testing/web-platform/tests/interfaces/css-view-transitions-2.idl +++ b/testing/web-platform/tests/interfaces/css-view-transitions-2.idl @@ -3,27 +3,39 @@ // (https://github.com/w3c/webref) // Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/) -dictionary StartViewTransitionOptions { - UpdateCallback? update = null; - sequence? type = null; -}; - -partial interface Document { - - ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {}); -}; - partial interface CSSRule { const unsigned short VIEW_TRANSITION_RULE = 15; }; enum ViewTransitionNavigation { "auto", "none" }; + [Exposed=Window] -interface CSSViewTransitionRule : CSSRule { - attribute ViewTransitionNavigation navigation; - attribute DOMTokenList typeList; +interface CSSViewTransitionTypeSet { + readonly setlike; }; -partial interface ViewTransition { - readonly attribute DOMTokenList typeList; +[Exposed=Window] +interface CSSViewTransitionRule : CSSRule { + readonly attribute ViewTransitionNavigation navigation; + readonly attribute CSSViewTransitionTypeSet types; +}; + +[Exposed=Window] +interface ViewTransitionTypeSet { + setlike; +}; + +[Exposed=Window] +partial interface ViewTransition { + attribute ViewTransitionTypeSet types; +}; + +dictionary StartViewTransitionOptions { + UpdateCallback? update = null; + sequence? types = null; +}; + +partial interface Document { + + ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {}); }; diff --git a/testing/web-platform/tests/interfaces/cssom-view.idl b/testing/web-platform/tests/interfaces/cssom-view.idl index 3f64113f5725..57e559e7f12f 100644 --- a/testing/web-platform/tests/interfaces/cssom-view.idl +++ b/testing/web-platform/tests/interfaces/cssom-view.idl @@ -130,6 +130,7 @@ partial interface Element { readonly attribute long clientLeft; readonly attribute long clientWidth; readonly attribute long clientHeight; + readonly attribute double currentCSSZoom; }; partial interface HTMLElement { diff --git a/testing/web-platform/tests/interfaces/cssom.idl b/testing/web-platform/tests/interfaces/cssom.idl index 94cd1912b912..005496e7ede2 100644 --- a/testing/web-platform/tests/interfaces/cssom.idl +++ b/testing/web-platform/tests/interfaces/cssom.idl @@ -99,7 +99,7 @@ interface CSSRule { [Exposed=Window] interface CSSStyleRule : CSSGroupingRule { attribute CSSOMString selectorText; - [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; + [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style; }; [Exposed=Window] @@ -118,10 +118,26 @@ interface CSSGroupingRule : CSSRule { undefined deleteRule(unsigned long index); }; +[Exposed=Window] +interface CSSPageDescriptors : CSSStyleDeclaration { + attribute [LegacyNullToEmptyString] CSSOMString margin; + attribute [LegacyNullToEmptyString] CSSOMString marginTop; + attribute [LegacyNullToEmptyString] CSSOMString marginRight; + attribute [LegacyNullToEmptyString] CSSOMString marginBottom; + attribute [LegacyNullToEmptyString] CSSOMString marginLeft; + attribute [LegacyNullToEmptyString] CSSOMString margin-top; + attribute [LegacyNullToEmptyString] CSSOMString margin-right; + attribute [LegacyNullToEmptyString] CSSOMString margin-bottom; + attribute [LegacyNullToEmptyString] CSSOMString margin-left; + attribute [LegacyNullToEmptyString] CSSOMString size; + attribute [LegacyNullToEmptyString] CSSOMString marks; + attribute [LegacyNullToEmptyString] CSSOMString bleed; +}; + [Exposed=Window] interface CSSPageRule : CSSGroupingRule { attribute CSSOMString selectorText; - [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; + [SameObject, PutForwards=cssText] readonly attribute CSSPageDescriptors style; }; [Exposed=Window] @@ -146,6 +162,10 @@ interface CSSStyleDeclaration { [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = ""); [CEReactions] CSSOMString removeProperty(CSSOMString property); readonly attribute CSSRule? parentRule; +}; + +[Exposed=Window] +interface CSSStyleProperties : CSSStyleDeclaration { [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat; }; diff --git a/testing/web-platform/tests/interfaces/html.idl b/testing/web-platform/tests/interfaces/html.idl index d2caf12b5bf6..2f97e4dd603e 100644 --- a/testing/web-platform/tests/interfaces/html.idl +++ b/testing/web-platform/tests/interfaces/html.idl @@ -48,7 +48,7 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; [LegacyOverrideBuiltIns] partial interface Document { - static Document parseHTMLUnsafe(DOMString html); + static Document parseHTMLUnsafe(HTMLString html); // resource metadata management [PutForwards=href, LegacyUnforgeable] readonly attribute Location? location; @@ -77,8 +77,8 @@ partial interface Document { [CEReactions] Document open(optional DOMString unused1, optional DOMString unused2); // both arguments are ignored WindowProxy? open(USVString url, DOMString name, DOMString features); [CEReactions] undefined close(); - [CEReactions] undefined write(DOMString... text); - [CEReactions] undefined writeln(DOMString... text); + [CEReactions] undefined write(HTMLString... text); + [CEReactions] undefined writeln(HTMLString... text); // user interaction readonly attribute WindowProxy? defaultView; @@ -452,7 +452,7 @@ interface HTMLIFrameElement : HTMLElement { [HTMLConstructor] constructor(); [CEReactions] attribute USVString src; - [CEReactions] attribute DOMString srcdoc; + [CEReactions] attribute HTMLString srcdoc; [CEReactions] attribute DOMString name; [SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox; [CEReactions] attribute DOMString allow; @@ -2296,7 +2296,7 @@ WorkerGlobalScope includes WindowOrWorkerGlobalScope; interface DOMParser { constructor(); - [NewObject] Document parseFromString(DOMString string, DOMParserSupportedType type); + [NewObject] Document parseFromString(HTMLString string, DOMParserSupportedType type); }; enum DOMParserSupportedType { @@ -2308,11 +2308,11 @@ enum DOMParserSupportedType { }; partial interface Element { - [CEReactions] undefined setHTMLUnsafe(DOMString html); + [CEReactions] undefined setHTMLUnsafe(HTMLString html); }; partial interface ShadowRoot { - [CEReactions] undefined setHTMLUnsafe(DOMString html); + [CEReactions] undefined setHTMLUnsafe(HTMLString html); }; [Exposed=Window] @@ -2527,7 +2527,7 @@ interface WorkerGlobalScope : EventTarget { readonly attribute WorkerGlobalScope self; readonly attribute WorkerLocation location; readonly attribute WorkerNavigator navigator; - undefined importScripts(USVString... urls); + undefined importScripts(ScriptURLString... urls); attribute OnErrorEventHandler onerror; attribute EventHandler onlanguagechange; @@ -2565,7 +2565,7 @@ interface mixin AbstractWorker { [Exposed=(Window,DedicatedWorker,SharedWorker)] interface Worker : EventTarget { - constructor(USVString scriptURL, optional WorkerOptions options = {}); + constructor(ScriptURLString scriptURL, optional WorkerOptions options = {}); undefined terminate(); @@ -2587,7 +2587,7 @@ Worker includes AbstractWorker; [Exposed=Window] interface SharedWorker : EventTarget { - constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options = {}); + constructor(ScriptURLString scriptURL, optional (DOMString or WorkerOptions) options = {}); readonly attribute MessagePort port; }; diff --git a/testing/web-platform/tests/interfaces/media-source.idl b/testing/web-platform/tests/interfaces/media-source.idl index 7a86a7a43c8f..de153e615a48 100644 --- a/testing/web-platform/tests/interfaces/media-source.idl +++ b/testing/web-platform/tests/interfaces/media-source.idl @@ -18,23 +18,25 @@ enum EndOfStreamError { interface MediaSource : EventTarget { constructor(); - [ SameObject, Exposed=DedicatedWorker ] - readonly attribute MediaSourceHandle handle; + [SameObject, Exposed=DedicatedWorker] + readonly attribute MediaSourceHandle handle; + readonly attribute SourceBufferList sourceBuffers; + readonly attribute SourceBufferList activeSourceBuffers; + readonly attribute ReadyState readyState; - readonly attribute SourceBufferList sourceBuffers; - readonly attribute SourceBufferList activeSourceBuffers; - readonly attribute ReadyState readyState; - attribute unrestricted double duration; - attribute EventHandler onsourceopen; - attribute EventHandler onsourceended; - attribute EventHandler onsourceclose; - static readonly attribute boolean canConstructInDedicatedWorker; - SourceBuffer addSourceBuffer (DOMString type); - undefined removeSourceBuffer (SourceBuffer sourceBuffer); - undefined endOfStream (optional EndOfStreamError error); - undefined setLiveSeekableRange (double start, double end); - undefined clearLiveSeekableRange (); - static boolean isTypeSupported (DOMString type); + attribute unrestricted double duration; + attribute EventHandler onsourceopen; + attribute EventHandler onsourceended; + attribute EventHandler onsourceclose; + + static readonly attribute boolean canConstructInDedicatedWorker; + + SourceBuffer addSourceBuffer(DOMString type); + undefined removeSourceBuffer(SourceBuffer sourceBuffer); + undefined endOfStream(optional EndOfStreamError error); + undefined setLiveSeekableRange(double start, double end); + undefined clearLiveSeekableRange(); + static boolean isTypeSupported(DOMString type); }; [Transferable, Exposed=(Window,DedicatedWorker)] @@ -47,32 +49,36 @@ enum AppendMode { [Exposed=(Window,DedicatedWorker)] interface SourceBuffer : EventTarget { - attribute AppendMode mode; - readonly attribute boolean updating; - readonly attribute TimeRanges buffered; - attribute double timestampOffset; - readonly attribute AudioTrackList audioTracks; - readonly attribute VideoTrackList videoTracks; - readonly attribute TextTrackList textTracks; - attribute double appendWindowStart; - attribute unrestricted double appendWindowEnd; - attribute EventHandler onupdatestart; - attribute EventHandler onupdate; - attribute EventHandler onupdateend; - attribute EventHandler onerror; - attribute EventHandler onabort; - undefined appendBuffer (BufferSource data); - undefined abort (); - undefined changeType (DOMString type); - undefined remove (double start, unrestricted double end); + attribute AppendMode mode; + readonly attribute boolean updating; + readonly attribute TimeRanges buffered; + attribute double timestampOffset; + readonly attribute AudioTrackList audioTracks; + readonly attribute VideoTrackList videoTracks; + readonly attribute TextTrackList textTracks; + attribute double appendWindowStart; + attribute unrestricted double appendWindowEnd; + + attribute EventHandler onupdatestart; + attribute EventHandler onupdate; + attribute EventHandler onupdateend; + attribute EventHandler onerror; + attribute EventHandler onabort; + + undefined appendBuffer(BufferSource data); + undefined abort(); + undefined changeType(DOMString type); + undefined remove(double start, unrestricted double end); }; [Exposed=(Window,DedicatedWorker)] interface SourceBufferList : EventTarget { - readonly attribute unsigned long length; - attribute EventHandler onaddsourcebuffer; - attribute EventHandler onremovesourcebuffer; - getter SourceBuffer (unsigned long index); + readonly attribute unsigned long length; + + attribute EventHandler onaddsourcebuffer; + attribute EventHandler onremovesourcebuffer; + + getter SourceBuffer (unsigned long index); }; [Exposed=(Window,DedicatedWorker)] @@ -103,15 +109,15 @@ interface ManagedSourceBuffer : SourceBuffer { [Exposed=(Window,DedicatedWorker)] partial interface AudioTrack { - readonly attribute SourceBuffer? sourceBuffer; + readonly attribute SourceBuffer? sourceBuffer; }; [Exposed=(Window,DedicatedWorker)] partial interface VideoTrack { - readonly attribute SourceBuffer? sourceBuffer; + readonly attribute SourceBuffer? sourceBuffer; }; [Exposed=(Window,DedicatedWorker)] partial interface TextTrack { - readonly attribute SourceBuffer? sourceBuffer; + readonly attribute SourceBuffer? sourceBuffer; }; diff --git a/testing/web-platform/tests/interfaces/sanitizer-api.idl b/testing/web-platform/tests/interfaces/sanitizer-api.idl index 117a55fdf77d..599d8f82ea45 100644 --- a/testing/web-platform/tests/interfaces/sanitizer-api.idl +++ b/testing/web-platform/tests/interfaces/sanitizer-api.idl @@ -3,36 +3,49 @@ // (https://github.com/w3c/webref) // Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/) -[ - Exposed=(Window), - SecureContext -] interface Sanitizer { - constructor(optional SanitizerConfig config = {}); - - DocumentFragment sanitize((Document or DocumentFragment) input); - Element? sanitizeFor(DOMString element, DOMString input); - - SanitizerConfig getConfiguration(); - static SanitizerConfig getDefaultConfiguration(); -}; - -dictionary SetHTMLOptions { - Sanitizer sanitizer; -}; -[SecureContext] partial interface Element { - undefined setHTML(DOMString input, optional SetHTMLOptions options = {}); + [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); + [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {}); }; +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 = {}); +}; + +dictionary SanitizerElementNamespace { + required DOMString name; + DOMString? _namespace = "http://www.w3.org/1999/xhtml"; +}; + +// Used by "elements" +dictionary SanitizerElementNamespaceWithAttributes : SanitizerElementNamespace { + sequence attributes; + sequence removeAttributes; +}; + +typedef (DOMString or SanitizerElementNamespace) SanitizerElement; +typedef (DOMString or SanitizerElementNamespaceWithAttributes) SanitizerElementWithAttributes; + +dictionary SanitizerAttributeNamespace { + required DOMString name; + DOMString? _namespace = null; +}; +typedef (DOMString or SanitizerAttributeNamespace) SanitizerAttribute; + dictionary SanitizerConfig { - sequence allowElements; - sequence blockElements; - sequence dropElements; - AttributeMatchList allowAttributes; - AttributeMatchList dropAttributes; - boolean allowCustomElements; - boolean allowUnknownMarkup; - boolean allowComments; -}; + sequence elements; + sequence removeElements; + sequence replaceWithChildrenElements; -typedef record> AttributeMatchList; + sequence attributes; + sequence removeAttributes; + + boolean comments; + boolean dataAttributes; +}; diff --git a/testing/web-platform/tests/interfaces/turtledove.idl b/testing/web-platform/tests/interfaces/turtledove.idl index 87aec6e6bca8..2547e1fb549c 100644 --- a/testing/web-platform/tests/interfaces/turtledove.idl +++ b/testing/web-platform/tests/interfaces/turtledove.idl @@ -25,6 +25,7 @@ dictionary GenerateBidInterestGroup { boolean enableBiddingSignalsPrioritization = false; record priorityVector; + record> sellerCapabilities; DOMString executionMode = "compatibility"; USVString biddingLogicURL; USVString biddingWasmHelperURL; @@ -68,28 +69,30 @@ partial interface Navigator { dictionary AuctionAdConfig { required USVString seller; required USVString decisionLogicURL; + USVString trustedScoringSignalsURL; long maxTrustedScoringSignalsURLLength; sequence interestGroupBuyers; Promise auctionSignals; - record requestedSize; - sequence> allSlotsRequestedSizes; Promise sellerSignals; Promise directFromSellerSignalsHeaderAdSlot; Promise> deprecatedRenderURLReplacements; unsigned long long sellerTimeout; unsigned short sellerExperimentGroupId; - USVString sellerCurrency; Promise> perBuyerSignals; Promise> perBuyerTimeouts; Promise> perBuyerCumulativeTimeouts; + USVString sellerCurrency; + Promise> perBuyerCurrencies; record perBuyerGroupLimits; record perBuyerExperimentGroupIds; record> perBuyerPrioritySignals; - Promise> perBuyerCurrencies; - sequence componentAuctions = []; + sequence requiredSellerCapabilities; + record requestedSize; + sequence> allSlotsRequestedSizes; Promise additionalBids; DOMString auctionNonce; + sequence componentAuctions = []; AbortSignal? signal; Promise resolveToConfig; }; diff --git a/testing/web-platform/tests/interfaces/url.idl b/testing/web-platform/tests/interfaces/url.idl index a5e4d1eb492e..cd18a66e31b3 100644 --- a/testing/web-platform/tests/interfaces/url.idl +++ b/testing/web-platform/tests/interfaces/url.idl @@ -8,6 +8,7 @@ interface URL { constructor(USVString url, optional USVString base); + static URL? parse(USVString url, optional USVString base); static boolean canParse(USVString url, optional USVString base); stringifier attribute USVString href; diff --git a/testing/web-platform/tests/interfaces/webcodecs-opus-codec-registration.idl b/testing/web-platform/tests/interfaces/webcodecs-opus-codec-registration.idl index 0d198a6bcdea..782a87b37d6d 100644 --- a/testing/web-platform/tests/interfaces/webcodecs-opus-codec-registration.idl +++ b/testing/web-platform/tests/interfaces/webcodecs-opus-codec-registration.idl @@ -9,6 +9,8 @@ partial dictionary AudioEncoderConfig { dictionary OpusEncoderConfig { OpusBitstreamFormat format = "opus"; + OpusSignal signal = "auto"; + OpusApplication application = "audio"; [EnforceRange] unsigned long long frameDuration = 20000; [EnforceRange] unsigned long complexity; [EnforceRange] unsigned long packetlossperc = 0; @@ -20,3 +22,15 @@ enum OpusBitstreamFormat { "opus", "ogg", }; + +enum OpusSignal { + "auto", + "music", + "voice", +}; + +enum OpusApplication { + "voip", + "audio", + "lowdelay", +}; diff --git a/testing/web-platform/tests/interfaces/webcodecs.idl b/testing/web-platform/tests/interfaces/webcodecs.idl index aa823aa52dfe..371546eb0d05 100644 --- a/testing/web-platform/tests/interfaces/webcodecs.idl +++ b/testing/web-platform/tests/interfaces/webcodecs.idl @@ -158,8 +158,8 @@ dictionary VideoDecoderConfig { dictionary AudioEncoderConfig { required DOMString codec; - [EnforceRange] unsigned long sampleRate; - [EnforceRange] unsigned long numberOfChannels; + [EnforceRange] required unsigned long sampleRate; + [EnforceRange] required unsigned long numberOfChannels; [EnforceRange] unsigned long long bitrate; BitrateMode bitrateMode = "variable"; };