From c9b1b536c9374b239076902c8b9ba853d1649070 Mon Sep 17 00:00:00 2001 From: Uzlopak <5059100+Uzlopak@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:15:59 +0000 Subject: [PATCH] chore: update WPT --- .../wpt/interfaces/css-view-transitions-2.idl | 9 ++-- .../wpt/interfaces/css-view-transitions.idl | 2 +- test/fixtures/wpt/interfaces/css-viewport.idl | 13 +++++ .../wpt/interfaces/digital-identities.idl | 6 +-- .../document-picture-in-picture.idl | 1 + test/fixtures/wpt/interfaces/fenced-frame.idl | 1 + test/fixtures/wpt/interfaces/html.idl | 1 + .../wpt/interfaces/ink-enhancement.idl | 1 - .../wpt/interfaces/shared-storage.idl | 47 ++++++++++--------- test/fixtures/wpt/interfaces/turtledove.idl | 26 ++++++++++ test/fixtures/wpt/interfaces/webauthn.idl | 31 +++++++++++- test/fixtures/wpt/interfaces/webgpu.idl | 4 +- test/fixtures/wpt/interfaces/webrtc.idl | 1 + test/fixtures/wpt/interfaces/webxr.idl | 2 +- 14 files changed, 107 insertions(+), 38 deletions(-) create mode 100644 test/fixtures/wpt/interfaces/css-viewport.idl diff --git a/test/fixtures/wpt/interfaces/css-view-transitions-2.idl b/test/fixtures/wpt/interfaces/css-view-transitions-2.idl index 774cb655bda..09719d647dd 100644 --- a/test/fixtures/wpt/interfaces/css-view-transitions-2.idl +++ b/test/fixtures/wpt/interfaces/css-view-transitions-2.idl @@ -3,11 +3,9 @@ // (https://github.com/w3c/webref) // Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/) -enum ViewTransitionNavigation { "auto", "none" }; - [Exposed=Window] interface CSSViewTransitionRule : CSSRule { - readonly attribute ViewTransitionNavigation navigation; + readonly attribute CSSOMString navigation; [SameObject] readonly attribute FrozenArray types; }; @@ -22,11 +20,10 @@ partial interface ViewTransition { }; dictionary StartViewTransitionOptions { - UpdateCallback? update = null; + ViewTransitionUpdateCallback? update = null; sequence? types = null; }; partial interface Document { - - ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {}); + ViewTransition startViewTransition(optional (ViewTransitionUpdateCallback or StartViewTransitionOptions) callbackOptions = {}); }; diff --git a/test/fixtures/wpt/interfaces/css-view-transitions.idl b/test/fixtures/wpt/interfaces/css-view-transitions.idl index ce39b7dcfce..275ccf3d6bf 100644 --- a/test/fixtures/wpt/interfaces/css-view-transitions.idl +++ b/test/fixtures/wpt/interfaces/css-view-transitions.idl @@ -3,7 +3,7 @@ // (https://github.com/w3c/webref) // Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/) -callback UpdateCallback = Promise (); +callback ViewTransitionUpdateCallback = Promise (); [Exposed=Window] interface ViewTransition { diff --git a/test/fixtures/wpt/interfaces/css-viewport.idl b/test/fixtures/wpt/interfaces/css-viewport.idl new file mode 100644 index 00000000000..fa6b5d3d892 --- /dev/null +++ b/test/fixtures/wpt/interfaces/css-viewport.idl @@ -0,0 +1,13 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Viewport Module Level 1 (https://drafts.csswg.org/css-viewport/) + +partial interface Window { +[SameObject, Replaceable] readonly attribute Viewport viewport; +}; + +[Exposed=Window] +interface Viewport { + readonly attribute FrozenArray? segments; +}; diff --git a/test/fixtures/wpt/interfaces/digital-identities.idl b/test/fixtures/wpt/interfaces/digital-identities.idl index bbb0c938303..90307fdadd5 100644 --- a/test/fixtures/wpt/interfaces/digital-identities.idl +++ b/test/fixtures/wpt/interfaces/digital-identities.idl @@ -12,10 +12,10 @@ partial dictionary CredentialRequestOptions { }; dictionary DigitalCredentialRequestOptions { - sequence providers; + sequence providers; }; -dictionary IdentityRequestProvider { +dictionary DigitalCredentialsProvider { required DOMString protocol; required object request; }; @@ -23,5 +23,5 @@ dictionary IdentityRequestProvider { [Exposed=Window, SecureContext] interface DigitalCredential : Credential { readonly attribute DOMString protocol; - readonly attribute any data; + readonly attribute object data; }; diff --git a/test/fixtures/wpt/interfaces/document-picture-in-picture.idl b/test/fixtures/wpt/interfaces/document-picture-in-picture.idl index ed34b3c2160..e55a7bd899e 100644 --- a/test/fixtures/wpt/interfaces/document-picture-in-picture.idl +++ b/test/fixtures/wpt/interfaces/document-picture-in-picture.idl @@ -21,6 +21,7 @@ dictionary DocumentPictureInPictureOptions { [EnforceRange] unsigned long long width = 0; [EnforceRange] unsigned long long height = 0; boolean disallowReturnToOpener = false; + boolean preferInitialWindowPlacement = false; }; [Exposed=Window, SecureContext] diff --git a/test/fixtures/wpt/interfaces/fenced-frame.idl b/test/fixtures/wpt/interfaces/fenced-frame.idl index e15cbf11da2..2cc6313e4db 100644 --- a/test/fixtures/wpt/interfaces/fenced-frame.idl +++ b/test/fixtures/wpt/interfaces/fenced-frame.idl @@ -10,6 +10,7 @@ interface HTMLFencedFrameElement : HTMLElement { [CEReactions] attribute FencedFrameConfig? config; [CEReactions] attribute DOMString width; [CEReactions] attribute DOMString height; + [SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox; [CEReactions] attribute DOMString allow; }; diff --git a/test/fixtures/wpt/interfaces/html.idl b/test/fixtures/wpt/interfaces/html.idl index f7ad9ac2dde..25e1f8a4ca0 100644 --- a/test/fixtures/wpt/interfaces/html.idl +++ b/test/fixtures/wpt/interfaces/html.idl @@ -125,6 +125,7 @@ interface HTMLElement : Element { [CEReactions] attribute boolean spellcheck; [CEReactions] attribute DOMString writingSuggestions; [CEReactions] attribute DOMString autocapitalize; + [CEReactions] attribute boolean autocorrect; [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText; [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText; diff --git a/test/fixtures/wpt/interfaces/ink-enhancement.idl b/test/fixtures/wpt/interfaces/ink-enhancement.idl index 660e2254c9e..711bab7729c 100644 --- a/test/fixtures/wpt/interfaces/ink-enhancement.idl +++ b/test/fixtures/wpt/interfaces/ink-enhancement.idl @@ -16,7 +16,6 @@ dictionary InkPresenterParam { [Exposed=Window] interface InkPresenter { readonly attribute Element? presentationArea; - readonly attribute unsigned long expectedImprovement; undefined updateInkTrailStartPoint(PointerEvent event, InkTrailStyle style); }; diff --git a/test/fixtures/wpt/interfaces/shared-storage.idl b/test/fixtures/wpt/interfaces/shared-storage.idl index 7f4976b7b20..cfaae1e6e24 100644 --- a/test/fixtures/wpt/interfaces/shared-storage.idl +++ b/test/fixtures/wpt/interfaces/shared-storage.idl @@ -23,7 +23,7 @@ interface SharedStorageWorkletGlobalScope : WorkletGlobalScope { undefined register(DOMString name, Function operationCtor); - readonly attribute WorkletSharedStorage sharedStorage; + readonly attribute SharedStorage sharedStorage; }; dictionary SharedStorageUrlWithMetadata { @@ -31,6 +31,10 @@ dictionary SharedStorageUrlWithMetadata { object reportingMetadata; }; +partial interface Window { + [SecureContext] readonly attribute SharedStorage? sharedStorage; +}; + [Exposed=(Window,SharedStorageWorklet)] interface SharedStorage { Promise set(DOMString key, @@ -40,23 +44,37 @@ interface SharedStorage { DOMString value); Promise delete(DOMString key); Promise clear(); -}; - -dictionary SharedStorageSetMethodOptions { - boolean ignoreIfPresent = false; -}; -[Exposed=(Window)] -interface WindowSharedStorage : SharedStorage { + [Exposed=Window] Promise selectURL(DOMString name, sequence urls, optional SharedStorageRunOperationMethodOptions options = {}); + + [Exposed=Window] Promise run(DOMString name, optional SharedStorageRunOperationMethodOptions options = {}); + [Exposed=Window] Promise createWorklet(USVString moduleURL, optional SharedStorageWorkletOptions options = {}); + [Exposed=Window] readonly attribute SharedStorageWorklet worklet; + + [Exposed=SharedStorageWorklet] + Promise get(DOMString key); + + [Exposed=SharedStorageWorklet] + Promise length(); + + [Exposed=SharedStorageWorklet] + Promise remainingBudget(); + + [Exposed=SharedStorageWorklet] + async iterable; +}; + +dictionary SharedStorageSetMethodOptions { + boolean ignoreIfPresent = false; }; dictionary SharedStorageRunOperationMethodOptions { @@ -69,19 +87,6 @@ dictionary SharedStorageWorkletOptions : WorkletOptions { SharedStorageDataOrigin dataOrigin = "context-origin"; }; -partial interface Window { - [SecureContext] readonly attribute WindowSharedStorage? sharedStorage; -}; - -[Exposed=(SharedStorageWorklet)] -interface WorkletSharedStorage : SharedStorage { - Promise get(DOMString key); - Promise length(); - Promise remainingBudget(); - - async iterable; -}; - interface mixin HTMLSharedStorageWritableElementUtils { [CEReactions, SecureContext] attribute boolean sharedStorageWritable; }; diff --git a/test/fixtures/wpt/interfaces/turtledove.idl b/test/fixtures/wpt/interfaces/turtledove.idl index 8ed7903f0b1..ff177c6782f 100644 --- a/test/fixtures/wpt/interfaces/turtledove.idl +++ b/test/fixtures/wpt/interfaces/turtledove.idl @@ -10,6 +10,7 @@ partial interface Navigator { dictionary AuctionAd { required USVString renderURL; + USVString sizeGroup; any metadata; USVString buyerReportingId; @@ -17,6 +18,11 @@ dictionary AuctionAd { sequence allowedReportingOrigins; }; +dictionary AuctionAdInterestGroupSize { + required USVString width; + required USVString height; +}; + dictionary GenerateBidInterestGroup { required USVString owner; required USVString name; @@ -36,6 +42,8 @@ dictionary GenerateBidInterestGroup { any userBiddingSignals; sequence ads; sequence adComponents; + record adSizes; + record> sizeGroups; }; dictionary AuctionAdInterestGroup : GenerateBidInterestGroup { @@ -104,6 +112,9 @@ dictionary AuctionAdConfig { sequence componentAuctions = []; AbortSignal? signal; Promise resolveToConfig; + + Promise serverResponse; + USVString requestId; }; [SecureContext] @@ -111,6 +122,21 @@ partial interface Navigator { boolean canLoadAdAuctionFencedFrame(); }; +[SecureContext] +partial interface Navigator { + Promise getInterestGroupAdAuctionData(AdAuctionDataConfig config); +}; + +dictionary AdAuctionDataConfig { + required USVString seller; + required USVString coordinatorOrigin; +}; + +dictionary AdAuctionData { + required Uint8Array request; + required USVString requestId; +}; + [SecureContext] partial interface Navigator { Promise createAuctionNonce(); diff --git a/test/fixtures/wpt/interfaces/webauthn.idl b/test/fixtures/wpt/interfaces/webauthn.idl index 10dd0f7e059..b4c0c2de603 100644 --- a/test/fixtures/wpt/interfaces/webauthn.idl +++ b/test/fixtures/wpt/interfaces/webauthn.idl @@ -128,6 +128,30 @@ dictionary PublicKeyCredentialRequestOptionsJSON { AuthenticationExtensionsClientInputsJSON extensions; }; +partial interface PublicKeyCredential { + static Promise signalUnknownCredential(UnknownCredentialOptions options); + static Promise signalAllAcceptedCredentials(AllAcceptedCredentialsOptions options); + static Promise signalCurrentUserDetails(CurrentUserDetailsOptions options); +}; + +dictionary UnknownCredentialOptions { + required DOMString rpId; + required Base64URLString credentialId; +}; + +dictionary AllAcceptedCredentialsOptions { + required DOMString rpId; + required Base64URLString userId; + required sequence allAcceptedCredentialIds; +}; + +dictionary CurrentUserDetailsOptions { + required DOMString rpId; + required Base64URLString userId; + required DOMString name; + required DOMString displayName; +}; + [SecureContext, Exposed=Window] interface AuthenticatorResponse { [SameObject] readonly attribute ArrayBuffer clientDataJSON; @@ -272,7 +296,10 @@ enum ClientCapability { "hybridTransport", "passkeyPlatformAuthenticator", "userVerifyingPlatformAuthenticator", - "relatedOrigins" + "relatedOrigins", + "signalAllAcceptedCredentials", + "signalCurrentUserDetails", + "signalUnknownCredential" }; enum PublicKeyCredentialHints { @@ -303,7 +330,7 @@ partial dictionary AuthenticationExtensionsClientInputs { dictionary CredentialPropertiesOutput { boolean rk; - USVString authenticatorDisplayName; + DOMString authenticatorDisplayName; }; partial dictionary AuthenticationExtensionsClientOutputs { diff --git a/test/fixtures/wpt/interfaces/webgpu.idl b/test/fixtures/wpt/interfaces/webgpu.idl index f575306efef..49186018a72 100644 --- a/test/fixtures/wpt/interfaces/webgpu.idl +++ b/test/fixtures/wpt/interfaces/webgpu.idl @@ -35,7 +35,6 @@ interface GPUSupportedLimits { readonly attribute unsigned long long maxBufferSize; readonly attribute unsigned long maxVertexAttributes; readonly attribute unsigned long maxVertexBufferArrayStride; - readonly attribute unsigned long maxInterStageShaderComponents; readonly attribute unsigned long maxInterStageShaderVariables; readonly attribute unsigned long maxColorAttachments; readonly attribute unsigned long maxColorAttachmentBytesPerSample; @@ -101,7 +100,7 @@ interface GPUAdapter { dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase { sequence requiredFeatures = []; - record requiredLimits = {}; + record requiredLimits = {}; GPUQueueDescriptor defaultQueue = {}; }; @@ -579,7 +578,6 @@ GPUShaderModule includes GPUObjectBase; dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase { required USVString code; - object sourceMap; sequence compilationHints = []; }; diff --git a/test/fixtures/wpt/interfaces/webrtc.idl b/test/fixtures/wpt/interfaces/webrtc.idl index 6bfbdb898c5..32500f9a560 100644 --- a/test/fixtures/wpt/interfaces/webrtc.idl +++ b/test/fixtures/wpt/interfaces/webrtc.idl @@ -317,6 +317,7 @@ dictionary RTCRtpCodingParameters { dictionary RTCRtpEncodingParameters : RTCRtpCodingParameters { boolean active = true; + RTCRtpCodec codec; unsigned long maxBitrate; double maxFramerate; double scaleResolutionDownBy; diff --git a/test/fixtures/wpt/interfaces/webxr.idl b/test/fixtures/wpt/interfaces/webxr.idl index 8e02fbd38a0..26a720aa888 100644 --- a/test/fixtures/wpt/interfaces/webxr.idl +++ b/test/fixtures/wpt/interfaces/webxr.idl @@ -178,7 +178,7 @@ interface XRInputSource { [SameObject] readonly attribute XRSpace targetRaySpace; [SameObject] readonly attribute XRSpace? gripSpace; [SameObject] readonly attribute FrozenArray profiles; - [SameObject] readonly attribute boolean skipRendering; + readonly attribute boolean skipRendering; }; [SecureContext, Exposed=Window]