From 6cfbd5fb8a906766f7d7968ecafdcb7d8a3a655d Mon Sep 17 00:00:00 2001 From: Uzlopak <5059100+Uzlopak@users.noreply.github.com> Date: Mon, 28 Oct 2024 00:18:32 +0000 Subject: [PATCH] chore: update WPT --- test/fixtures/wpt/interfaces/fedcm.idl | 1 + .../wpt/interfaces/invokers.tentative.idl | 10 ++-- test/fixtures/wpt/interfaces/mediasession.idl | 2 +- test/fixtures/wpt/interfaces/turtledove.idl | 15 +++-- test/fixtures/wpt/interfaces/webaudio.idl | 12 ++-- test/fixtures/wpt/interfaces/webcodecs.idl | 2 +- test/fixtures/wpt/interfaces/webgpu.idl | 1 + test/fixtures/wpt/interfaces/webtransport.idl | 3 +- test/fixtures/wpt/interfaces/webusb.idl | 26 ++++----- .../local-url-inherit-controller-frame.html | 3 +- .../static-router-resource-timing.https.html | 1 + ...ge-in-detached-iframe.tentative.https.html | 21 ------- .../constructor-submitter-coordinate.html | 19 ++++--- .../formdata/submitter-coordinate-value.html | 55 +++++++++++++++++++ 14 files changed, 108 insertions(+), 63 deletions(-) delete mode 100644 test/fixtures/wpt/storage/quotachange-in-detached-iframe.tentative.https.html create mode 100644 test/fixtures/wpt/xhr/formdata/submitter-coordinate-value.html diff --git a/test/fixtures/wpt/interfaces/fedcm.idl b/test/fixtures/wpt/interfaces/fedcm.idl index ba99f1174c8..443d3311a24 100644 --- a/test/fixtures/wpt/interfaces/fedcm.idl +++ b/test/fixtures/wpt/interfaces/fedcm.idl @@ -43,6 +43,7 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig { USVString nonce; DOMString loginHint; DOMString domainHint; + any params; }; dictionary IdentityProviderWellKnown { diff --git a/test/fixtures/wpt/interfaces/invokers.tentative.idl b/test/fixtures/wpt/interfaces/invokers.tentative.idl index 4724d7deb08..046a365939c 100644 --- a/test/fixtures/wpt/interfaces/invokers.tentative.idl +++ b/test/fixtures/wpt/interfaces/invokers.tentative.idl @@ -1,15 +1,15 @@ -interface mixin InvokerElement { - [CEReactions,Reflect=invoketarget] attribute Element? commandForElement; - [CEReactions,Reflect=invokeaction] attribute DOMString command; +interface mixin CommandElement { + [CEReactions,Reflect=commandfor] attribute Element? commandForElement; + [CEReactions,Reflect=command] attribute DOMString command; }; interface CommandEvent : Event { constructor(DOMString type, optional CommandEventInit eventInitDict = {}); - readonly attribute Element? invoker; + readonly attribute Element? source; readonly attribute DOMString command; }; dictionary CommandEventInit : EventInit { - Element? invoker = null; + Element? source = null; DOMString command = ""; }; diff --git a/test/fixtures/wpt/interfaces/mediasession.idl b/test/fixtures/wpt/interfaces/mediasession.idl index 5c6942be5a0..9c050b0efdf 100644 --- a/test/fixtures/wpt/interfaces/mediasession.idl +++ b/test/fixtures/wpt/interfaces/mediasession.idl @@ -59,7 +59,7 @@ interface MediaMetadata { attribute DOMString title; attribute DOMString artist; attribute DOMString album; - attribute FrozenArray artwork; + attribute FrozenArray artwork; [SameObject] readonly attribute FrozenArray chapterInfo; }; diff --git a/test/fixtures/wpt/interfaces/turtledove.idl b/test/fixtures/wpt/interfaces/turtledove.idl index ff48d311914..0309f5047b3 100644 --- a/test/fixtures/wpt/interfaces/turtledove.idl +++ b/test/fixtures/wpt/interfaces/turtledove.idl @@ -15,6 +15,7 @@ dictionary AuctionAd { USVString buyerReportingId; USVString buyerAndSellerReportingId; + sequence selectableBuyerAndSellerReportingIds; sequence allowedReportingOrigins; DOMString adRenderId; }; @@ -89,16 +90,16 @@ dictionary AuctionAdConfig { sequence interestGroupBuyers; Promise auctionSignals; Promise sellerSignals; - Promise directFromSellerSignalsHeaderAdSlot; - Promise> deprecatedRenderURLReplacements; + Promise directFromSellerSignalsHeaderAdSlot; + Promise?> deprecatedRenderURLReplacements; unsigned long long sellerTimeout; unsigned short sellerExperimentGroupId; - Promise> perBuyerSignals; - Promise> perBuyerTimeouts; - Promise> perBuyerCumulativeTimeouts; + Promise?> perBuyerSignals; + Promise?> perBuyerTimeouts; + Promise?> perBuyerCumulativeTimeouts; unsigned long long reportingTimeout; USVString sellerCurrency; - Promise> perBuyerCurrencies; + Promise?> perBuyerCurrencies; record perBuyerMultiBidLimits; record perBuyerGroupLimits; record perBuyerExperimentGroupIds; @@ -198,6 +199,7 @@ dictionary GenerateBidOutput { DOMString bidCurrency; (DOMString or AdRender) render; any ad; + USVString selectedBuyerAndSellerReportingId; sequence<(DOMString or AdRender)> adComponents; double adCost; unrestricted double modelingSignals; @@ -294,6 +296,7 @@ dictionary ReportingBrowserSignals { USVString componentSeller; USVString buyerAndSellerReportingId; + USVString selectedBuyerAndSellerReportingId; }; dictionary ReportResultBrowserSignals : ReportingBrowserSignals { diff --git a/test/fixtures/wpt/interfaces/webaudio.idl b/test/fixtures/wpt/interfaces/webaudio.idl index 74aab7e2362..d14eb96820f 100644 --- a/test/fixtures/wpt/interfaces/webaudio.idl +++ b/test/fixtures/wpt/interfaces/webaudio.idl @@ -1,7 +1,7 @@ // GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) -// Source: Web Audio API (https://webaudio.github.io/web-audio-api/) +// Source: Web Audio API 1.1 (https://webaudio.github.io/web-audio-api/) enum AudioContextState { "suspended", @@ -33,8 +33,8 @@ interface BaseAudioContext : EventTarget { AnalyserNode createAnalyser (); BiquadFilterNode createBiquadFilter (); AudioBuffer createBuffer (unsigned long numberOfChannels, - unsigned long length, - float sampleRate); + unsigned long length, + float sampleRate); AudioBufferSourceNode createBufferSource (); ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6); ChannelSplitterNode createChannelSplitter ( @@ -45,12 +45,12 @@ interface BaseAudioContext : EventTarget { DynamicsCompressorNode createDynamicsCompressor (); GainNode createGain (); IIRFilterNode createIIRFilter (sequence feedforward, - sequence feedback); + sequence feedback); OscillatorNode createOscillator (); PannerNode createPanner (); PeriodicWave createPeriodicWave (sequence real, - sequence imag, - optional PeriodicWaveConstraints constraints = {}); + sequence imag, + optional PeriodicWaveConstraints constraints = {}); ScriptProcessorNode createScriptProcessor( optional unsigned long bufferSize = 0, optional unsigned long numberOfInputChannels = 2, diff --git a/test/fixtures/wpt/interfaces/webcodecs.idl b/test/fixtures/wpt/interfaces/webcodecs.idl index 52731257f1f..98476281218 100644 --- a/test/fixtures/wpt/interfaces/webcodecs.idl +++ b/test/fixtures/wpt/interfaces/webcodecs.idl @@ -340,7 +340,7 @@ dictionary VideoFrameInit { AlphaOption alpha = "keep"; // Default matches image. May be used to efficiently crop. Will trigger - // new computation of displayWidth and displayHeight using image’s pixel + // new computation of displayWidth and displayHeight using image's pixel // aspect ratio unless an explicit displayWidth and displayHeight are given. DOMRectInit visibleRect; diff --git a/test/fixtures/wpt/interfaces/webgpu.idl b/test/fixtures/wpt/interfaces/webgpu.idl index 421685c7a8f..58e43d02f5e 100644 --- a/test/fixtures/wpt/interfaces/webgpu.idl +++ b/test/fixtures/wpt/interfaces/webgpu.idl @@ -119,6 +119,7 @@ enum GPUFeatureName { "rg11b10ufloat-renderable", "bgra8unorm-storage", "float32-filterable", + "float32-blendable", "clip-distances", "dual-source-blending", }; diff --git a/test/fixtures/wpt/interfaces/webtransport.idl b/test/fixtures/wpt/interfaces/webtransport.idl index 6e9d1036736..24fe5b7e61b 100644 --- a/test/fixtures/wpt/interfaces/webtransport.idl +++ b/test/fixtures/wpt/interfaces/webtransport.idl @@ -96,7 +96,8 @@ dictionary WebTransportConnectionStats { required DOMHighResTimeStamp rttVariation; required DOMHighResTimeStamp minRtt; required WebTransportDatagramStats datagrams; - required unsigned long long? estimatedSendRate; + unsigned long long? estimatedSendRate = null; + boolean atSendCapacity = false; }; dictionary WebTransportDatagramStats { diff --git a/test/fixtures/wpt/interfaces/webusb.idl b/test/fixtures/wpt/interfaces/webusb.idl index 3b362d2351d..d6484db3e88 100644 --- a/test/fixtures/wpt/interfaces/webusb.idl +++ b/test/fixtures/wpt/interfaces/webusb.idl @@ -40,7 +40,7 @@ dictionary USBConnectionEventInit : EventInit { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBConnectionEvent : Event { @@ -55,7 +55,7 @@ enum USBTransferStatus { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBInTransferResult { @@ -65,7 +65,7 @@ interface USBInTransferResult { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBOutTransferResult { @@ -75,7 +75,7 @@ interface USBOutTransferResult { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBIsochronousInTransferPacket { @@ -85,7 +85,7 @@ interface USBIsochronousInTransferPacket { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBIsochronousInTransferResult { @@ -95,7 +95,7 @@ interface USBIsochronousInTransferResult { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBIsochronousOutTransferPacket { @@ -105,7 +105,7 @@ interface USBIsochronousOutTransferPacket { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBIsochronousOutTransferResult { @@ -113,7 +113,7 @@ interface USBIsochronousOutTransferResult { readonly attribute FrozenArray packets; }; -[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext] +[Exposed=(Worker,Window), SecureContext] interface USBDevice { readonly attribute octet usbVersionMajor; readonly attribute octet usbVersionMinor; @@ -171,7 +171,7 @@ dictionary USBControlTransferParameters { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBConfiguration { @@ -182,7 +182,7 @@ interface USBConfiguration { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBInterface { @@ -194,7 +194,7 @@ interface USBInterface { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBAlternateInterface { @@ -219,7 +219,7 @@ enum USBEndpointType { }; [ - Exposed=(DedicatedWorker,SharedWorker,Window), + Exposed=(Worker,Window), SecureContext ] interface USBEndpoint { @@ -252,7 +252,7 @@ dictionary USBPermissionStorage { sequence allowedDevices = []; }; -[Exposed=(DedicatedWorker,SharedWorker,Window)] +[Exposed=(Worker,Window)] interface USBPermissionResult : PermissionStatus { attribute FrozenArray devices; }; diff --git a/test/fixtures/wpt/service-workers/service-worker/resources/local-url-inherit-controller-frame.html b/test/fixtures/wpt/service-workers/service-worker/resources/local-url-inherit-controller-frame.html index 3a5d9b51e75..e7214827a4c 100644 --- a/test/fixtures/wpt/service-workers/service-worker/resources/local-url-inherit-controller-frame.html +++ b/test/fixtures/wpt/service-workers/service-worker/resources/local-url-inherit-controller-frame.html @@ -140,7 +140,8 @@ let w = new SharedWorker(url); return new Promise((resolve, reject) => { w.port.onmessage = m => { - if (m.data.includes("Error")) { + // (null is a valid value when the SharedWorker is not controlled) + if (m.data?.includes("Error")) { reject(m.data); return; } diff --git a/test/fixtures/wpt/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https.html b/test/fixtures/wpt/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https.html index 74d84eb3c9f..e32436da41b 100644 --- a/test/fixtures/wpt/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https.html +++ b/test/fixtures/wpt/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https.html @@ -63,6 +63,7 @@ if (entry.workerFinalSourceType === 'cache') { assert_equals(entry.fetchStart, entry.responseStart, description); assert_less_than_equal(entry.workerCacheLookupStart, entry.responseStart, description); + assert_equals(entry.deliveryType, 'cache-storage', description); } else { assert_less_than_equal(entry.workerCacheLookupStart, entry.fetchStart, description); } diff --git a/test/fixtures/wpt/storage/quotachange-in-detached-iframe.tentative.https.html b/test/fixtures/wpt/storage/quotachange-in-detached-iframe.tentative.https.html deleted file mode 100644 index 123af50e3ce..00000000000 --- a/test/fixtures/wpt/storage/quotachange-in-detached-iframe.tentative.https.html +++ /dev/null @@ -1,21 +0,0 @@ - - -quotachange event on DOMWindow of detached iframe - - - - - diff --git a/test/fixtures/wpt/xhr/formdata/constructor-submitter-coordinate.html b/test/fixtures/wpt/xhr/formdata/constructor-submitter-coordinate.html index 992f64b7217..b7bf128bd12 100644 --- a/test/fixtures/wpt/xhr/formdata/constructor-submitter-coordinate.html +++ b/test/fixtures/wpt/xhr/formdata/constructor-submitter-coordinate.html @@ -1,18 +1,21 @@ +
- +
diff --git a/test/fixtures/wpt/xhr/formdata/submitter-coordinate-value.html b/test/fixtures/wpt/xhr/formdata/submitter-coordinate-value.html new file mode 100644 index 00000000000..69bea0ac3f9 --- /dev/null +++ b/test/fixtures/wpt/xhr/formdata/submitter-coordinate-value.html @@ -0,0 +1,55 @@ + + + +Test image button coordinates + + + + +
+ +
+ + + + +