From b0c05ab90df99ff707898a6b821a8503a427eb19 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:18:02 -0800 Subject: [PATCH] Sync interfaces/ with @webref/idl 3.55.4 (#48970) Co-authored-by: wpt-pr-bot --- interfaces/fenced-frame.idl | 5 +++ interfaces/html.idl | 2 + interfaces/private-aggregation-api.idl | 52 ------------------------- interfaces/resource-timing.idl | 1 + interfaces/turtledove.idl | 54 ++++++++++++++++++++++++++ interfaces/user-timing.idl | 2 +- interfaces/web-animations.idl | 1 + interfaces/webcodecs.idl | 8 ++++ interfaces/webgpu.idl | 51 ++++++++++++++---------- interfaces/webnn.idl | 6 +-- interfaces/webxr.idl | 1 + 11 files changed, 106 insertions(+), 77 deletions(-) diff --git a/interfaces/fenced-frame.idl b/interfaces/fenced-frame.idl index 8c5fa31bea8d89..cdc35d04ca45e4 100644 --- a/interfaces/fenced-frame.idl +++ b/interfaces/fenced-frame.idl @@ -74,9 +74,14 @@ interface Fence { undefined reportEvent(optional ReportEventType event = {}); undefined setReportEventDataForAutomaticBeacons(optional FenceEvent event = {}); sequence getNestedConfigs(); + undefined notifyEvent(Event event); }; partial interface Window { // Collection of fenced frame APIs readonly attribute Fence? fence; }; + +partial interface mixin GlobalEventHandlers { + attribute EventHandler onfencedtreeclick; +}; diff --git a/interfaces/html.idl b/interfaces/html.idl index 25e1f8a4ca058e..c295941fcb2750 100644 --- a/interfaces/html.idl +++ b/interfaces/html.idl @@ -881,10 +881,12 @@ interface HTMLInputElement : HTMLElement { [HTMLConstructor] constructor(); [CEReactions] attribute DOMString accept; + [CEReactions] attribute boolean alpha; [CEReactions] attribute DOMString alt; [CEReactions] attribute DOMString autocomplete; [CEReactions] attribute boolean defaultChecked; attribute boolean checked; + [CEReactions] attribute DOMString colorSpace; [CEReactions] attribute DOMString dirName; [CEReactions] attribute boolean disabled; readonly attribute HTMLFormElement? form; diff --git a/interfaces/private-aggregation-api.idl b/interfaces/private-aggregation-api.idl index cee17c63f0427b..c89a4687abb896 100644 --- a/interfaces/private-aggregation-api.idl +++ b/interfaces/private-aggregation-api.idl @@ -19,55 +19,3 @@ dictionary PAHistogramContribution { dictionary PADebugModeOptions { required bigint debugKey; }; - -partial interface InterestGroupScriptRunnerGlobalScope { - readonly attribute PrivateAggregation privateAggregation; -}; - -dictionary PASignalValue { - required DOMString baseValue; - double scale; - (bigint or long) offset; -}; - -dictionary PAExtendedHistogramContribution { - required (PASignalValue or bigint) bucket; - required (PASignalValue or long) value; - bigint filteringId = 0; -}; - -[Exposed=InterestGroupScriptRunnerGlobalScope, SecureContext] -partial interface PrivateAggregation { - undefined contributeToHistogramOnEvent( - DOMString event, PAExtendedHistogramContribution contribution); -}; - -dictionary AuctionReportBuyersConfig { - required bigint bucket; - required double scale; -}; - -dictionary AuctionReportBuyerDebugModeConfig { - boolean enabled = false; - - // Must only be provided if `enabled` is true. - bigint? debugKey; -}; - -partial dictionary AuctionAdConfig { - sequence auctionReportBuyerKeys; - record auctionReportBuyers; - AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig; -}; - -dictionary ProtectedAudiencePrivateAggregationConfig { - USVString aggregationCoordinatorOrigin; -}; - -partial dictionary AuctionAdConfig { - ProtectedAudiencePrivateAggregationConfig privateAggregationConfig; -}; - -partial dictionary AuctionAdInterestGroup { - ProtectedAudiencePrivateAggregationConfig privateAggregationConfig; -}; diff --git a/interfaces/resource-timing.idl b/interfaces/resource-timing.idl index 33fed05b756838..66f2841d744af3 100644 --- a/interfaces/resource-timing.idl +++ b/interfaces/resource-timing.idl @@ -18,6 +18,7 @@ interface PerformanceResourceTiming : PerformanceEntry { readonly attribute DOMHighResTimeStamp connectEnd; readonly attribute DOMHighResTimeStamp secureConnectionStart; readonly attribute DOMHighResTimeStamp requestStart; + readonly attribute DOMHighResTimeStamp finalResponseHeadersStart; readonly attribute DOMHighResTimeStamp firstInterimResponseStart; readonly attribute DOMHighResTimeStamp responseStart; readonly attribute DOMHighResTimeStamp responseEnd; diff --git a/interfaces/turtledove.idl b/interfaces/turtledove.idl index 0309f5047b3649..c416760d5956c4 100644 --- a/interfaces/turtledove.idl +++ b/interfaces/turtledove.idl @@ -48,11 +48,16 @@ dictionary GenerateBidInterestGroup { record> sizeGroups; }; +dictionary ProtectedAudiencePrivateAggregationConfig { + USVString aggregationCoordinatorOrigin; +}; + dictionary AuctionAdInterestGroup : GenerateBidInterestGroup { double priority = 0.0; record prioritySignalsOverrides; required double lifetimeMs; DOMString additionalBidKey; + ProtectedAudiencePrivateAggregationConfig privateAggregationConfig; }; [SecureContext] @@ -77,6 +82,18 @@ partial interface Navigator { readonly attribute boolean deprecatedRunAdAuctionEnforcesKAnonymity; }; +dictionary AuctionReportBuyersConfig { + required bigint bucket; + required double scale; +}; + +dictionary AuctionReportBuyerDebugModeConfig { + boolean enabled = false; + + // Must only be provided if `enabled` is true. + bigint? debugKey; +}; + dictionary AuctionRealTimeReportingConfig { required DOMString type; }; @@ -104,7 +121,13 @@ dictionary AuctionAdConfig { record perBuyerGroupLimits; record perBuyerExperimentGroupIds; record> perBuyerPrioritySignals; + + sequence auctionReportBuyerKeys; + record auctionReportBuyers; + AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig; sequence requiredSellerCapabilities; + ProtectedAudiencePrivateAggregationConfig privateAggregationConfig; + record requestedSize; sequence> allSlotsRequestedSizes; Promise additionalBids; @@ -145,6 +168,18 @@ dictionary AdAuctionDataBuyerConfig { unsigned long targetSize; }; +dictionary StorageInterestGroup : AuctionAdInterestGroup { + unsigned long long joinCount; + unsigned long long bidCount; + sequence prevWinsMs; + USVString joiningOrigin; + long long timeSinceGroupJoinedMs; + long long lifetimeRemainingMs; + long long timeSinceLastUpdateMs; + long long timeUntilNextUpdateMs; + unsigned long long estimatedSize; +}; + [SecureContext] partial interface Navigator { Promise createAuctionNonce(); @@ -152,6 +187,25 @@ partial interface Navigator { [Exposed=InterestGroupScriptRunnerGlobalScope] interface InterestGroupScriptRunnerGlobalScope { + readonly attribute PrivateAggregation? privateAggregation; +}; + +dictionary PASignalValue { + required DOMString baseValue; + double scale; + (bigint or long) offset; +}; + +dictionary PAExtendedHistogramContribution { + required (PASignalValue or bigint) bucket; + required (PASignalValue or long) value; + bigint filteringId = 0; +}; + +[Exposed=InterestGroupScriptRunnerGlobalScope] +partial interface PrivateAggregation { + undefined contributeToHistogramOnEvent( + DOMString event, PAExtendedHistogramContribution contribution); }; [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope] diff --git a/interfaces/user-timing.idl b/interfaces/user-timing.idl index 28ee8aac2b19a6..fc6d30822588b1 100644 --- a/interfaces/user-timing.idl +++ b/interfaces/user-timing.idl @@ -1,7 +1,7 @@ // GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) -// Source: User Timing Level 3 (https://w3c.github.io/user-timing/) +// Source: User Timing (https://w3c.github.io/user-timing/) dictionary PerformanceMarkOptions { any detail; diff --git a/interfaces/web-animations.idl b/interfaces/web-animations.idl index 1bc82fab119828..c36588af478212 100644 --- a/interfaces/web-animations.idl +++ b/interfaces/web-animations.idl @@ -136,6 +136,7 @@ dictionary KeyframeAnimationOptions : KeyframeEffectOptions { dictionary GetAnimationsOptions { boolean subtree = false; + CSSOMString? pseudoElement = null; }; partial interface Document { diff --git a/interfaces/webcodecs.idl b/interfaces/webcodecs.idl index 984762812186c3..5cd4adf9348011 100644 --- a/interfaces/webcodecs.idl +++ b/interfaces/webcodecs.idl @@ -317,6 +317,8 @@ interface VideoFrame { readonly attribute unsigned long codedHeight; readonly attribute DOMRectReadOnly? codedRect; readonly attribute DOMRectReadOnly? visibleRect; + readonly attribute double rotation; + readonly attribute boolean flip; readonly attribute unsigned long displayWidth; readonly attribute unsigned long displayHeight; readonly attribute unsigned long long? duration; // microseconds @@ -344,6 +346,9 @@ dictionary VideoFrameInit { // aspect ratio unless an explicit displayWidth and displayHeight are given. DOMRectInit visibleRect; + double rotation = 0; + boolean flip = false; + // Default matches image unless visibleRect is provided. [EnforceRange] unsigned long displayWidth; [EnforceRange] unsigned long displayHeight; @@ -364,6 +369,9 @@ dictionary VideoFrameBufferInit { // Default visible rect is coded size positioned at (0,0) DOMRectInit visibleRect; + double rotation = 0; + boolean flip = false; + // Default display dimensions match visibleRect. [EnforceRange] unsigned long displayWidth; [EnforceRange] unsigned long displayHeight; diff --git a/interfaces/webgpu.idl b/interfaces/webgpu.idl index 58e43d02f5e42e..ebd3b4ab67ef83 100644 --- a/interfaces/webgpu.idl +++ b/interfaces/webgpu.idl @@ -570,7 +570,7 @@ GPUPipelineLayout includes GPUObjectBase; dictionary GPUPipelineLayoutDescriptor : GPUObjectDescriptorBase { - required sequence bindGroupLayouts; + required sequence bindGroupLayouts; }; [Exposed=(Window, Worker), SecureContext] @@ -810,22 +810,31 @@ enum GPUIndexFormat { }; enum GPUVertexFormat { + "uint8", "uint8x2", "uint8x4", + "sint8", "sint8x2", "sint8x4", + "unorm8", "unorm8x2", "unorm8x4", + "snorm8", "snorm8x2", "snorm8x4", + "uint16", "uint16x2", "uint16x4", + "sint16", "sint16x2", "sint16x4", + "unorm16", "unorm16x2", "unorm16x4", + "snorm16", "snorm16x2", "snorm16x4", + "float16", "float16x2", "float16x4", "float32", @@ -841,6 +850,7 @@ enum GPUVertexFormat { "sint32x3", "sint32x4", "unorm10-10-10-2", + "unorm8x4-bgra", }; enum GPUVertexStepMode { @@ -866,26 +876,26 @@ dictionary GPUVertexAttribute { required GPUIndex32 shaderLocation; }; -dictionary GPUImageDataLayout { +dictionary GPUTexelCopyBufferLayout { GPUSize64 offset = 0; GPUSize32 bytesPerRow; GPUSize32 rowsPerImage; }; -dictionary GPUImageCopyBuffer - : GPUImageDataLayout { +dictionary GPUTexelCopyBufferInfo + : GPUTexelCopyBufferLayout { required GPUBuffer buffer; }; -dictionary GPUImageCopyTexture { +dictionary GPUTexelCopyTextureInfo { required GPUTexture texture; GPUIntegerCoordinate mipLevel = 0; GPUOrigin3D origin = {}; GPUTextureAspect aspect = "all"; }; -dictionary GPUImageCopyTextureTagged - : GPUImageCopyTexture { +dictionary GPUCopyExternalImageDestInfo + : GPUTexelCopyTextureInfo { PredefinedColorSpace colorSpace = "srgb"; boolean premultipliedAlpha = false; }; @@ -896,10 +906,10 @@ typedef (ImageBitmap or HTMLVideoElement or VideoFrame or HTMLCanvasElement or - OffscreenCanvas) GPUImageCopyExternalImageSource; + OffscreenCanvas) GPUCopyExternalImageSource; -dictionary GPUImageCopyExternalImage { - required GPUImageCopyExternalImageSource source; +dictionary GPUCopyExternalImageSourceInfo { + required GPUCopyExternalImageSource source; GPUOrigin2D origin = {}; boolean flipY = false; }; @@ -929,18 +939,18 @@ interface GPUCommandEncoder { GPUSize64 size); undefined copyBufferToTexture( - GPUImageCopyBuffer source, - GPUImageCopyTexture destination, + GPUTexelCopyBufferInfo source, + GPUTexelCopyTextureInfo destination, GPUExtent3D copySize); undefined copyTextureToBuffer( - GPUImageCopyTexture source, - GPUImageCopyBuffer destination, + GPUTexelCopyTextureInfo source, + GPUTexelCopyBufferInfo destination, GPUExtent3D copySize); undefined copyTextureToTexture( - GPUImageCopyTexture source, - GPUImageCopyTexture destination, + GPUTexelCopyTextureInfo source, + GPUTexelCopyTextureInfo destination, GPUExtent3D copySize); undefined clearBuffer( @@ -1145,14 +1155,14 @@ interface GPUQueue { optional GPUSize64 size); undefined writeTexture( - GPUImageCopyTexture destination, + GPUTexelCopyTextureInfo destination, AllowSharedBufferSource data, - GPUImageDataLayout dataLayout, + GPUTexelCopyBufferLayout dataLayout, GPUExtent3D size); undefined copyExternalImageToTexture( - GPUImageCopyExternalImage source, - GPUImageCopyTextureTagged destination, + GPUCopyExternalImageSourceInfo source, + GPUCopyExternalImageDestInfo destination, GPUExtent3D copySize); }; GPUQueue includes GPUObjectBase; @@ -1275,7 +1285,6 @@ dictionary GPUUncapturedErrorEventInit : EventInit { }; partial interface GPUDevice { - [Exposed=(Window, Worker)] attribute EventHandler onuncapturederror; }; diff --git a/interfaces/webnn.idl b/interfaces/webnn.idl index 8329e7d2b33eec..112fa2bf8328bb 100644 --- a/interfaces/webnn.idl +++ b/interfaces/webnn.idl @@ -95,8 +95,8 @@ dictionary MLOperandDescriptor { [SecureContext, Exposed=(Window, DedicatedWorker)] interface MLOperand { - MLOperandDataType dataType(); - sequence shape(); + readonly attribute MLOperandDataType dataType; + readonly attribute FrozenArray shape; }; dictionary MLOperatorOptions { @@ -872,7 +872,7 @@ dictionary MLSplitSupportLimits { }; partial dictionary MLOpSupportLimits { - MLSingleInputSupportLimits split; + MLSplitSupportLimits split; }; partial interface MLGraphBuilder { diff --git a/interfaces/webxr.idl b/interfaces/webxr.idl index 26a720aa888e5b..dea448d7440782 100644 --- a/interfaces/webxr.idl +++ b/interfaces/webxr.idl @@ -40,6 +40,7 @@ enum XRVisibilityState { readonly attribute Float32Array? supportedFrameRates; [SameObject] readonly attribute XRRenderState renderState; [SameObject] readonly attribute XRInputSourceArray inputSources; + [SameObject] readonly attribute XRInputSourceArray trackedSources; readonly attribute FrozenArray enabledFeatures; readonly attribute boolean isSystemKeyboardSupported;