summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /testing/web-platform/tests/interfaces
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/interfaces')
-rw-r--r--testing/web-platform/tests/interfaces/compute-pressure.idl2
-rw-r--r--testing/web-platform/tests/interfaces/css-animations.idl2
-rw-r--r--testing/web-platform/tests/interfaces/css-fonts.idl35
-rw-r--r--testing/web-platform/tests/interfaces/css-scroll-snap-2.idl31
-rw-r--r--testing/web-platform/tests/interfaces/css-view-transitions-2.idl38
-rw-r--r--testing/web-platform/tests/interfaces/cssom-view.idl1
-rw-r--r--testing/web-platform/tests/interfaces/cssom.idl24
-rw-r--r--testing/web-platform/tests/interfaces/document-picture-in-picture.idl1
-rw-r--r--testing/web-platform/tests/interfaces/html.idl21
-rw-r--r--testing/web-platform/tests/interfaces/long-animation-frames.idl54
-rw-r--r--testing/web-platform/tests/interfaces/longtasks.idl50
-rw-r--r--testing/web-platform/tests/interfaces/media-source.idl90
-rw-r--r--testing/web-platform/tests/interfaces/mediacapture-streams.idl10
-rw-r--r--testing/web-platform/tests/interfaces/navigation-timing.idl1
-rw-r--r--testing/web-platform/tests/interfaces/permissions.idl2
-rw-r--r--testing/web-platform/tests/interfaces/sanitizer-api.idl61
-rw-r--r--testing/web-platform/tests/interfaces/turtledove.idl16
-rw-r--r--testing/web-platform/tests/interfaces/ua-client-hints.idl2
-rw-r--r--testing/web-platform/tests/interfaces/url.idl1
-rw-r--r--testing/web-platform/tests/interfaces/web-animations-2.idl1
-rw-r--r--testing/web-platform/tests/interfaces/webcodecs-opus-codec-registration.idl14
-rw-r--r--testing/web-platform/tests/interfaces/webcodecs.idl28
-rw-r--r--testing/web-platform/tests/interfaces/webnn.idl97
23 files changed, 352 insertions, 230 deletions
diff --git a/testing/web-platform/tests/interfaces/compute-pressure.idl b/testing/web-platform/tests/interfaces/compute-pressure.idl
index 3e35dc4ee2..c4dcb90af4 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 6620e0156d..14a9998069 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 7a917662b5..678f31323b 100644
--- a/testing/web-platform/tests/interfaces/css-fonts.idl
+++ b/testing/web-platform/tests/interfaces/css-fonts.idl
@@ -4,8 +4,41 @@
// 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 50cbf6940a..a346969c56 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/)
-[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;
+dictionary SnapEventInit : EventInit {
+ Node? snapTargetBlock;
+ Node? snapTargetInline;
};
[Exposed=Window]
-interface SnapTargetArray {
- readonly attribute unsigned long length;
- getter EventTarget? item (unsigned long index);
-};
-
-dictionary SnapEventInit : EventModifierInit {
- sequence<EventTarget> snappedTargetsX = [];
- sequence<EventTarget> snappedTargetsY = [];
- sequence<EventTarget> snapTargetsListX = [];
- sequence<EventTarget> snapTargetsListY = [];
+interface SnapEvent : Event {
+ constructor(DOMString type, optional SnapEventInit eventInitDict = {});
+ 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 89e57e251b..41337f4e1e 100644
--- a/testing/web-platform/tests/interfaces/css-view-transitions-2.idl
+++ b/testing/web-platform/tests/interfaces/css-view-transitions-2.idl
@@ -3,23 +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<DOMString>? type = null;
+partial interface CSSRule {
+ const unsigned short VIEW_TRANSITION_RULE = 15;
};
-partial interface Document {
+enum ViewTransitionNavigation { "auto", "none" };
- ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {});
+[Exposed=Window]
+interface CSSViewTransitionTypeSet {
+ readonly setlike<CSSOMString>;
};
-partial interface CSSRule {
- const unsigned short VIEW_TRANSITION_RULE = 15;
+[Exposed=Window]
+interface CSSViewTransitionRule : CSSRule {
+ readonly attribute ViewTransitionNavigation navigation;
+ readonly attribute CSSViewTransitionTypeSet types;
};
-enum ViewTransitionNavigation { "auto", "none" };
[Exposed=Window]
-interface CSSViewTransitionRule : CSSRule {
- attribute ViewTransitionNavigation navigation;
- attribute DOMTokenList typeList;
+interface ViewTransitionTypeSet {
+ setlike<DOMString>;
+};
+
+[Exposed=Window]
+partial interface ViewTransition {
+ attribute ViewTransitionTypeSet types;
+};
+
+dictionary StartViewTransitionOptions {
+ UpdateCallback? update = null;
+ sequence<DOMString>? 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 3f64113f57..57e559e7f1 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 94cd1912b9..005496e7ed 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]
@@ -119,9 +119,25 @@ interface CSSGroupingRule : CSSRule {
};
[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/document-picture-in-picture.idl b/testing/web-platform/tests/interfaces/document-picture-in-picture.idl
index f54f437a93..888855b38f 100644
--- a/testing/web-platform/tests/interfaces/document-picture-in-picture.idl
+++ b/testing/web-platform/tests/interfaces/document-picture-in-picture.idl
@@ -20,6 +20,7 @@ interface DocumentPictureInPicture : EventTarget {
dictionary DocumentPictureInPictureOptions {
[EnforceRange] unsigned long long width = 0;
[EnforceRange] unsigned long long height = 0;
+ boolean allowReturnToOpener = true;
};
[Exposed=Window, SecureContext]
diff --git a/testing/web-platform/tests/interfaces/html.idl b/testing/web-platform/tests/interfaces/html.idl
index 7211231980..2f97e4dd60 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;
@@ -123,6 +123,7 @@ interface HTMLElement : Element {
readonly attribute DOMString accessKeyLabel;
[CEReactions] attribute boolean draggable;
[CEReactions] attribute boolean spellcheck;
+ [CEReactions] attribute DOMString writingSuggestions;
[CEReactions] attribute DOMString autocapitalize;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
@@ -451,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;
@@ -2295,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 {
@@ -2307,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]
@@ -2526,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;
@@ -2564,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();
@@ -2586,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/long-animation-frames.idl b/testing/web-platform/tests/interfaces/long-animation-frames.idl
new file mode 100644
index 0000000000..79a42ca8f0
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/long-animation-frames.idl
@@ -0,0 +1,54 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into webref
+// (https://github.com/w3c/webref)
+// Source: Long Animation Frames API (https://w3c.github.io/long-animation-frames/)
+
+[Exposed=Window]
+interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
+ /* Overloading PerformanceEntry */
+ readonly attribute DOMHighResTimeStamp startTime;
+ readonly attribute DOMHighResTimeStamp duration;
+ readonly attribute DOMString name;
+ readonly attribute DOMString entryType;
+
+ readonly attribute DOMHighResTimeStamp renderStart;
+ readonly attribute DOMHighResTimeStamp styleAndLayoutStart;
+ readonly attribute DOMHighResTimeStamp blockingDuration;
+ readonly attribute DOMHighResTimeStamp firstUIEventTimestamp;
+ [SameObject] readonly attribute FrozenArray<PerformanceScriptTiming> scripts;
+ [Default] object toJSON();
+};
+
+enum ScriptInvokerType {
+ "classic-script",
+ "module-script",
+ "event-listener",
+ "user-callback",
+ "resolve-promise",
+ "reject-promise"
+};
+
+enum ScriptWindowAttribution {
+ "self", "descendant", "ancestor", "same-page", "other"
+};
+
+[Exposed=Window]
+interface PerformanceScriptTiming : PerformanceEntry {
+ /* Overloading PerformanceEntry */
+ readonly attribute DOMHighResTimeStamp startTime;
+ readonly attribute DOMHighResTimeStamp duration;
+ readonly attribute DOMString name;
+ readonly attribute DOMString entryType;
+
+ readonly attribute ScriptInvokerType invokerType;
+ readonly attribute DOMString invoker;
+ readonly attribute DOMHighResTimeStamp executionStart;
+ readonly attribute DOMString sourceURL;
+ readonly attribute DOMString sourceFunctionName;
+ readonly attribute long long sourceCharPosition;
+ readonly attribute DOMHighResTimeStamp pauseDuration;
+ readonly attribute DOMHighResTimeStamp forcedStyleAndLayoutDuration;
+ readonly attribute Window? window;
+ readonly attribute ScriptWindowAttribution windowAttribution;
+ [Default] object toJSON();
+};
diff --git a/testing/web-platform/tests/interfaces/longtasks.idl b/testing/web-platform/tests/interfaces/longtasks.idl
index e5b6ece16a..3717469fd0 100644
--- a/testing/web-platform/tests/interfaces/longtasks.idl
+++ b/testing/web-platform/tests/interfaces/longtasks.idl
@@ -29,53 +29,3 @@ interface TaskAttributionTiming : PerformanceEntry {
readonly attribute DOMString containerName;
[Default] object toJSON();
};
-
-[Exposed=Window]
-interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
- /* Overloading PerformanceEntry */
- readonly attribute DOMHighResTimeStamp startTime;
- readonly attribute DOMHighResTimeStamp duration;
- readonly attribute DOMString name;
- readonly attribute DOMString entryType;
-
- readonly attribute DOMHighResTimeStamp renderStart;
- readonly attribute DOMHighResTimeStamp styleAndLayoutStart;
- readonly attribute DOMHighResTimeStamp blockingDuration;
- readonly attribute DOMHighResTimeStamp firstUIEventTimestamp;
- [SameObject] readonly attribute FrozenArray<PerformanceScriptTiming> scripts;
- [Default] object toJSON();
-};
-
-enum ScriptInvokerType {
- "classic-script",
- "module-script",
- "event-listener",
- "user-callback",
- "resolve-promise",
- "reject-promise"
-};
-
-enum ScriptWindowAttribution {
- "self", "descendant", "ancestor", "same-page", "other"
-};
-
-[Exposed=Window]
-interface PerformanceScriptTiming : PerformanceEntry {
- /* Overloading PerformanceEntry */
- readonly attribute DOMHighResTimeStamp startTime;
- readonly attribute DOMHighResTimeStamp duration;
- readonly attribute DOMString name;
- readonly attribute DOMString entryType;
-
- readonly attribute ScriptInvokerType invokerType;
- readonly attribute DOMString invoker;
- readonly attribute DOMHighResTimeStamp executionStart;
- readonly attribute DOMString sourceURL;
- readonly attribute DOMString sourceFunctionName;
- readonly attribute long long sourceCharPosition;
- readonly attribute DOMHighResTimeStamp pauseDuration;
- readonly attribute DOMHighResTimeStamp forcedStyleAndLayoutDuration;
- readonly attribute Window? window;
- readonly attribute ScriptWindowAttribution windowAttribution;
- [Default] object toJSON();
-};
diff --git a/testing/web-platform/tests/interfaces/media-source.idl b/testing/web-platform/tests/interfaces/media-source.idl
index 7a86a7a43c..de153e615a 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;
-
- 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);
+ [SameObject, Exposed=DedicatedWorker]
+ readonly attribute MediaSourceHandle handle;
+ 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);
};
[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/mediacapture-streams.idl b/testing/web-platform/tests/interfaces/mediacapture-streams.idl
index 373f0c328d..f2ca21389e 100644
--- a/testing/web-platform/tests/interfaces/mediacapture-streams.idl
+++ b/testing/web-platform/tests/interfaces/mediacapture-streams.idl
@@ -189,16 +189,6 @@ dictionary MediaStreamConstraints {
(boolean or MediaTrackConstraints) audio = false;
};
-partial interface Navigator {
- [SecureContext] undefined getUserMedia(MediaStreamConstraints constraints,
- NavigatorUserMediaSuccessCallback successCallback,
- NavigatorUserMediaErrorCallback errorCallback);
-};
-
-callback NavigatorUserMediaSuccessCallback = undefined (MediaStream stream);
-
-callback NavigatorUserMediaErrorCallback = undefined (DOMException error);
-
dictionary DoubleRange {
double max;
double min;
diff --git a/testing/web-platform/tests/interfaces/navigation-timing.idl b/testing/web-platform/tests/interfaces/navigation-timing.idl
index 355950160e..b381b486e1 100644
--- a/testing/web-platform/tests/interfaces/navigation-timing.idl
+++ b/testing/web-platform/tests/interfaces/navigation-timing.idl
@@ -16,6 +16,7 @@ interface PerformanceNavigationTiming : PerformanceResourceTiming {
readonly attribute NavigationTimingType type;
readonly attribute unsigned short redirectCount;
readonly attribute DOMHighResTimeStamp criticalCHRestart;
+ readonly attribute NotRestoredReasons? notRestoredReasons;
[Default] object toJSON();
};
diff --git a/testing/web-platform/tests/interfaces/permissions.idl b/testing/web-platform/tests/interfaces/permissions.idl
index fbcb674e56..62c2e3ad76 100644
--- a/testing/web-platform/tests/interfaces/permissions.idl
+++ b/testing/web-platform/tests/interfaces/permissions.idl
@@ -36,6 +36,6 @@ enum PermissionState {
};
dictionary PermissionSetParameters {
- required PermissionDescriptor descriptor;
+ required object descriptor;
required PermissionState state;
};
diff --git a/testing/web-platform/tests/interfaces/sanitizer-api.idl b/testing/web-platform/tests/interfaces/sanitizer-api.idl
index 117a55fdf7..599d8f82ea 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 = {});
+partial interface Element {
+ [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
+ [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
+};
- DocumentFragment sanitize((Document or DocumentFragment) input);
- Element? sanitizeFor(DOMString element, DOMString input);
+partial interface ShadowRoot {
+ [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
+ [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
+};
- SanitizerConfig getConfiguration();
- static SanitizerConfig getDefaultConfiguration();
+partial interface Document {
+ static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
+ static Document parseHTML(DOMString html, optional SanitizerConfig config = {});
};
-dictionary SetHTMLOptions {
- Sanitizer sanitizer;
+dictionary SanitizerElementNamespace {
+ required DOMString name;
+ DOMString? _namespace = "http://www.w3.org/1999/xhtml";
};
-[SecureContext]
-partial interface Element {
- undefined setHTML(DOMString input, optional SetHTMLOptions options = {});
+
+// Used by "elements"
+dictionary SanitizerElementNamespaceWithAttributes : SanitizerElementNamespace {
+ sequence<SanitizerAttribute> attributes;
+ sequence<SanitizerAttribute> removeAttributes;
};
-dictionary SanitizerConfig {
- sequence<DOMString> allowElements;
- sequence<DOMString> blockElements;
- sequence<DOMString> dropElements;
- AttributeMatchList allowAttributes;
- AttributeMatchList dropAttributes;
- boolean allowCustomElements;
- boolean allowUnknownMarkup;
- boolean allowComments;
+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<SanitizerElementWithAttributes> elements;
+ sequence<SanitizerElement> removeElements;
+ sequence<SanitizerElement> replaceWithChildrenElements;
-typedef record<DOMString, sequence<DOMString>> AttributeMatchList;
+ sequence<SanitizerAttribute> attributes;
+ sequence<SanitizerAttribute> removeAttributes;
+
+ boolean comments;
+ boolean dataAttributes;
+};
diff --git a/testing/web-platform/tests/interfaces/turtledove.idl b/testing/web-platform/tests/interfaces/turtledove.idl
index 8a2d7bb594..2547e1fb54 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<DOMString, double> priorityVector;
+ record<USVString, sequence<DOMString>> sellerCapabilities;
DOMString executionMode = "compatibility";
USVString biddingLogicURL;
USVString biddingWasmHelperURL;
@@ -32,6 +33,7 @@ dictionary GenerateBidInterestGroup {
USVString trustedBiddingSignalsURL;
sequence<USVString> trustedBiddingSignalsKeys;
DOMString trustedBiddingSignalsSlotSizeMode = "none";
+ long maxTrustedBiddingSignalsURLLength;
any userBiddingSignals;
sequence<AuctionAd> ads;
sequence<AuctionAd> adComponents;
@@ -67,26 +69,30 @@ partial interface Navigator {
dictionary AuctionAdConfig {
required USVString seller;
required USVString decisionLogicURL;
+
USVString trustedScoringSignalsURL;
+ long maxTrustedScoringSignalsURLLength;
sequence<USVString> interestGroupBuyers;
Promise<any> auctionSignals;
- record<DOMString, DOMString> requestedSize;
- sequence<record<DOMString, DOMString>> allSlotsRequestedSizes;
Promise<any> sellerSignals;
Promise<DOMString> directFromSellerSignalsHeaderAdSlot;
+ Promise<record<USVString, USVString>> deprecatedRenderURLReplacements;
unsigned long long sellerTimeout;
unsigned short sellerExperimentGroupId;
- USVString sellerCurrency;
Promise<record<USVString, any>> perBuyerSignals;
Promise<record<USVString, unsigned long long>> perBuyerTimeouts;
Promise<record<USVString, unsigned long long>> perBuyerCumulativeTimeouts;
+ USVString sellerCurrency;
+ Promise<record<USVString, USVString>> perBuyerCurrencies;
record<USVString, unsigned short> perBuyerGroupLimits;
record<USVString, unsigned short> perBuyerExperimentGroupIds;
record<USVString, record<USVString, double>> perBuyerPrioritySignals;
- Promise<record<USVString, USVString>> perBuyerCurrencies;
- sequence<AuctionAdConfig> componentAuctions = [];
+ sequence<DOMString> requiredSellerCapabilities;
+ record<DOMString, DOMString> requestedSize;
+ sequence<record<DOMString, DOMString>> allSlotsRequestedSizes;
Promise<undefined> additionalBids;
DOMString auctionNonce;
+ sequence<AuctionAdConfig> componentAuctions = [];
AbortSignal? signal;
Promise<boolean> resolveToConfig;
};
diff --git a/testing/web-platform/tests/interfaces/ua-client-hints.idl b/testing/web-platform/tests/interfaces/ua-client-hints.idl
index 6a40e1bdc4..5d44b0dd80 100644
--- a/testing/web-platform/tests/interfaces/ua-client-hints.idl
+++ b/testing/web-platform/tests/interfaces/ua-client-hints.idl
@@ -12,7 +12,7 @@ dictionary UADataValues {
DOMString architecture;
DOMString bitness;
sequence<NavigatorUABrandVersion> brands;
- sequence<DOMString> formFactor;
+ sequence<DOMString> formFactors;
sequence<NavigatorUABrandVersion> fullVersionList;
DOMString model;
boolean mobile;
diff --git a/testing/web-platform/tests/interfaces/url.idl b/testing/web-platform/tests/interfaces/url.idl
index a5e4d1eb49..cd18a66e31 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/web-animations-2.idl b/testing/web-platform/tests/interfaces/web-animations-2.idl
index f9f68a0d49..4c3af53514 100644
--- a/testing/web-platform/tests/interfaces/web-animations-2.idl
+++ b/testing/web-platform/tests/interfaces/web-animations-2.idl
@@ -14,6 +14,7 @@ partial interface AnimationTimeline {
partial interface Animation {
attribute CSSNumberish? startTime;
attribute CSSNumberish? currentTime;
+ readonly attribute double? progress;
};
[Exposed=Window]
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 0d198a6bcd..782a87b37d 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 48d89d0b47..371546eb0d 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";
};
@@ -390,21 +390,37 @@ dictionary PlaneLayout {
enum VideoPixelFormat {
// 4:2:0 Y, U, V
"I420",
+ "I420P10",
+ "I420P12",
// 4:2:0 Y, U, V, A
"I420A",
+ "I420AP10",
+ "I420AP12",
// 4:2:2 Y, U, V
"I422",
+ "I422P10",
+ "I422P12",
+ // 4:2:2 Y, U, V, A
+ "I422A",
+ "I422AP10",
+ "I422AP12",
// 4:4:4 Y, U, V
"I444",
+ "I444P10",
+ "I444P12",
+ // 4:4:4 Y, U, V, A
+ "I444A",
+ "I444AP10",
+ "I444AP12",
// 4:2:0 Y, UV
"NV12",
- // 32bpp RGBA
+ // 4:4:4 RGBA
"RGBA",
- // 32bpp RGBX (opaque)
+ // 4:4:4 RGBX (opaque)
"RGBX",
- // 32bpp BGRA
+ // 4:4:4 BGRA
"BGRA",
- // 32bpp BGRX (opaque)
+ // 4:4:4 BGRX (opaque)
"BGRX",
};
diff --git a/testing/web-platform/tests/interfaces/webnn.idl b/testing/web-platform/tests/interfaces/webnn.idl
index 50ee64b185..0b8ea7cb34 100644
--- a/testing/web-platform/tests/interfaces/webnn.idl
+++ b/testing/web-platform/tests/interfaces/webnn.idl
@@ -69,7 +69,7 @@ dictionary MLOperandDescriptor {
// The dimensions field is empty for scalar operands,
// and non-empty for tensor operands.
- sequence<unsigned long> dimensions = [];
+ sequence<[EnforceRange] unsigned long> dimensions = [];
};
[SecureContext, Exposed=(Window, DedicatedWorker)]
@@ -102,7 +102,7 @@ interface MLGraphBuilder {
};
dictionary MLArgMinMaxOptions {
- sequence<unsigned long> axes;
+ sequence<[EnforceRange] unsigned long> axes;
boolean keepDimensions = false;
boolean selectLastIndex = false;
};
@@ -115,7 +115,7 @@ partial interface MLGraphBuilder {
dictionary MLBatchNormalizationOptions {
MLOperand scale;
MLOperand bias;
- unsigned long axis = 1;
+ [EnforceRange] unsigned long axis = 1;
float epsilon = 1e-5;
MLActivation activation;
};
@@ -140,7 +140,7 @@ partial interface MLGraphBuilder {
};
partial interface MLGraphBuilder {
- MLOperand concat(sequence<MLOperand> inputs, unsigned long axis);
+ MLOperand concat(sequence<MLOperand> inputs, [EnforceRange] unsigned long axis);
};
enum MLConv2dFilterOperandLayout {
@@ -151,10 +151,10 @@ enum MLConv2dFilterOperandLayout {
};
dictionary MLConv2dOptions {
- sequence<unsigned long> padding;
- sequence<unsigned long> strides;
- sequence<unsigned long> dilations;
- unsigned long groups = 1;
+ sequence<[EnforceRange] unsigned long> padding;
+ sequence<[EnforceRange] unsigned long> strides;
+ sequence<[EnforceRange] unsigned long> dilations;
+ [EnforceRange] unsigned long groups = 1;
MLInputOperandLayout inputLayout = "nchw";
MLConv2dFilterOperandLayout filterLayout = "oihw";
MLOperand bias;
@@ -172,12 +172,12 @@ enum MLConvTranspose2dFilterOperandLayout {
};
dictionary MLConvTranspose2dOptions {
- sequence<unsigned long> padding;
- sequence<unsigned long> strides;
- sequence<unsigned long> dilations;
- sequence<unsigned long> outputPadding;
- sequence<unsigned long> outputSizes;
- unsigned long groups = 1;
+ sequence<[EnforceRange] unsigned long> padding;
+ sequence<[EnforceRange] unsigned long> strides;
+ sequence<[EnforceRange] unsigned long> dilations;
+ sequence<[EnforceRange] unsigned long> outputPadding;
+ sequence<[EnforceRange] unsigned long> outputSizes;
+ [EnforceRange] unsigned long groups = 1;
MLInputOperandLayout inputLayout = "nchw";
MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
MLOperand bias;
@@ -234,11 +234,11 @@ partial interface MLGraphBuilder {
};
partial interface MLGraphBuilder {
- MLOperand expand(MLOperand input, sequence<unsigned long> newShape);
+ MLOperand expand(MLOperand input, sequence<[EnforceRange] unsigned long> newShape);
};
dictionary MLGatherOptions {
- unsigned long axis = 0;
+ [EnforceRange] unsigned long axis = 0;
};
partial interface MLGraphBuilder {
@@ -280,8 +280,11 @@ dictionary MLGruOptions {
};
partial interface MLGraphBuilder {
- sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
- unsigned long steps, unsigned long hiddenSize,
+ sequence<MLOperand> gru(MLOperand input,
+ MLOperand weight,
+ MLOperand recurrentWeight,
+ [EnforceRange] unsigned long steps,
+ [EnforceRange] unsigned long hiddenSize,
optional MLGruOptions options = {});
};
@@ -294,8 +297,11 @@ dictionary MLGruCellOptions {
};
partial interface MLGraphBuilder {
- MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
- MLOperand hiddenState, unsigned long hiddenSize,
+ MLOperand gruCell(MLOperand input,
+ MLOperand weight,
+ MLOperand recurrentWeight,
+ MLOperand hiddenState,
+ [EnforceRange] unsigned long hiddenSize,
optional MLGruCellOptions options = {});
};
@@ -329,7 +335,7 @@ partial interface MLGraphBuilder {
dictionary MLLayerNormalizationOptions {
MLOperand scale;
MLOperand bias;
- sequence<unsigned long> axes;
+ sequence<[EnforceRange] unsigned long> axes;
float epsilon = 1e-5;
};
@@ -374,8 +380,11 @@ dictionary MLLstmOptions {
};
partial interface MLGraphBuilder {
- sequence<MLOperand> lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
- unsigned long steps, unsigned long hiddenSize,
+ sequence<MLOperand> lstm(MLOperand input,
+ MLOperand weight,
+ MLOperand recurrentWeight,
+ [EnforceRange] unsigned long steps,
+ [EnforceRange] unsigned long hiddenSize,
optional MLLstmOptions options = {});
};
@@ -388,8 +397,12 @@ dictionary MLLstmCellOptions {
};
partial interface MLGraphBuilder {
- sequence<MLOperand> lstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
- MLOperand hiddenState, MLOperand cellState, unsigned long hiddenSize,
+ sequence<MLOperand> lstmCell(MLOperand input,
+ MLOperand weight,
+ MLOperand recurrentWeight,
+ MLOperand hiddenState,
+ MLOperand cellState,
+ [EnforceRange] unsigned long hiddenSize,
optional MLLstmCellOptions options = {});
};
@@ -411,8 +424,8 @@ dictionary MLPadOptions {
partial interface MLGraphBuilder {
MLOperand pad(MLOperand input,
- sequence<unsigned long> beginningPadding,
- sequence<unsigned long> endingPadding,
+ sequence<[EnforceRange] unsigned long> beginningPadding,
+ sequence<[EnforceRange] unsigned long> endingPadding,
optional MLPadOptions options = {});
};
@@ -422,13 +435,13 @@ enum MLRoundingType {
};
dictionary MLPool2dOptions {
- sequence<unsigned long> windowDimensions;
- sequence<unsigned long> padding;
- sequence<unsigned long> strides;
- sequence<unsigned long> dilations;
+ sequence<[EnforceRange] unsigned long> windowDimensions;
+ sequence<[EnforceRange] unsigned long> padding;
+ sequence<[EnforceRange] unsigned long> strides;
+ sequence<[EnforceRange] unsigned long> dilations;
MLInputOperandLayout layout = "nchw";
MLRoundingType roundingType = "floor";
- sequence<unsigned long> outputSizes;
+ sequence<[EnforceRange] unsigned long> outputSizes;
};
partial interface MLGraphBuilder {
@@ -442,7 +455,7 @@ partial interface MLGraphBuilder {
};
dictionary MLReduceOptions {
- sequence<unsigned long> axes;
+ sequence<[EnforceRange] unsigned long> axes;
boolean keepDimensions = false;
};
@@ -472,8 +485,8 @@ enum MLInterpolationMode {
dictionary MLResample2dOptions {
MLInterpolationMode mode = "nearest-neighbor";
sequence<float> scales;
- sequence<unsigned long> sizes;
- sequence<unsigned long> axes;
+ sequence<[EnforceRange] unsigned long> sizes;
+ sequence<[EnforceRange] unsigned long> axes;
};
partial interface MLGraphBuilder {
@@ -481,7 +494,7 @@ partial interface MLGraphBuilder {
};
partial interface MLGraphBuilder {
- MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);
+ MLOperand reshape(MLOperand input, sequence<[EnforceRange] unsigned long> newShape);
};
partial interface MLGraphBuilder {
@@ -490,7 +503,9 @@ partial interface MLGraphBuilder {
};
partial interface MLGraphBuilder {
- MLOperand slice(MLOperand input, sequence<unsigned long> starts, sequence<unsigned long> sizes);
+ MLOperand slice(MLOperand input,
+ sequence<[EnforceRange] unsigned long> starts,
+ sequence<[EnforceRange] unsigned long> sizes);
};
partial interface MLGraphBuilder {
@@ -513,12 +528,12 @@ partial interface MLGraphBuilder {
};
dictionary MLSplitOptions {
- unsigned long axis = 0;
+ [EnforceRange] unsigned long axis = 0;
};
partial interface MLGraphBuilder {
sequence<MLOperand> split(MLOperand input,
- (unsigned long or sequence<unsigned long>) splits,
+ ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits,
optional MLSplitOptions options = {});
};
@@ -528,7 +543,7 @@ partial interface MLGraphBuilder {
};
dictionary MLTransposeOptions {
- sequence<unsigned long> permutation;
+ sequence<[EnforceRange] unsigned long> permutation;
};
partial interface MLGraphBuilder {
@@ -537,7 +552,7 @@ partial interface MLGraphBuilder {
dictionary MLTriangularOptions {
boolean upper = true;
- long diagonal = 0;
+ [EnforceRange] long diagonal = 0;
};
partial interface MLGraphBuilder {