Skip to content

Commit

Permalink
chore: update WPT
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored and github-actions[bot] committed Nov 13, 2024
1 parent 2b81fbc commit 1a4b325
Show file tree
Hide file tree
Showing 27 changed files with 253 additions and 461 deletions.
1 change: 1 addition & 0 deletions test/fixtures/wpt/interfaces/fedcm.idl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
USVString nonce;
DOMString loginHint;
DOMString domainHint;
any params;
};

dictionary IdentityProviderWellKnown {
Expand Down
5 changes: 5 additions & 0 deletions test/fixtures/wpt/interfaces/fenced-frame.idl
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ interface Fence {
undefined reportEvent(optional ReportEventType event = {});
undefined setReportEventDataForAutomaticBeacons(optional FenceEvent event = {});
sequence<FencedFrameConfig> getNestedConfigs();
undefined notifyEvent(Event event);
};

partial interface Window {
// Collection of fenced frame APIs
readonly attribute Fence? fence;
};

partial interface mixin GlobalEventHandlers {
attribute EventHandler onfencedtreeclick;
};
2 changes: 2 additions & 0 deletions test/fixtures/wpt/interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/wpt/interfaces/invokers.tentative.idl
Original file line number Diff line number Diff line change
@@ -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 = "";
};
2 changes: 1 addition & 1 deletion test/fixtures/wpt/interfaces/mediasession.idl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface MediaMetadata {
attribute DOMString title;
attribute DOMString artist;
attribute DOMString album;
attribute FrozenArray<MediaImage> artwork;
attribute FrozenArray<object> artwork;
[SameObject] readonly attribute FrozenArray<ChapterInformation> chapterInfo;
};

Expand Down
52 changes: 0 additions & 52 deletions test/fixtures/wpt/interfaces/private-aggregation-api.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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<bigint> auctionReportBuyerKeys;
record<DOMString, AuctionReportBuyersConfig> auctionReportBuyers;
AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig;
};

dictionary ProtectedAudiencePrivateAggregationConfig {
USVString aggregationCoordinatorOrigin;
};

partial dictionary AuctionAdConfig {
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
};

partial dictionary AuctionAdInterestGroup {
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
};
1 change: 1 addition & 0 deletions test/fixtures/wpt/interfaces/resource-timing.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
69 changes: 63 additions & 6 deletions test/fixtures/wpt/interfaces/turtledove.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dictionary AuctionAd {

USVString buyerReportingId;
USVString buyerAndSellerReportingId;
sequence<USVString> selectableBuyerAndSellerReportingIds;
sequence<USVString> allowedReportingOrigins;
DOMString adRenderId;
};
Expand Down Expand Up @@ -47,11 +48,16 @@ dictionary GenerateBidInterestGroup {
record<DOMString, sequence<DOMString>> sizeGroups;
};

dictionary ProtectedAudiencePrivateAggregationConfig {
USVString aggregationCoordinatorOrigin;
};

dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
double priority = 0.0;
record<DOMString, double> prioritySignalsOverrides;
required double lifetimeMs;
DOMString additionalBidKey;
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
};

[SecureContext]
Expand All @@ -76,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;
};
Expand All @@ -89,21 +107,27 @@ dictionary AuctionAdConfig {
sequence<USVString> interestGroupBuyers;
Promise<any> auctionSignals;
Promise<any> sellerSignals;
Promise<DOMString> directFromSellerSignalsHeaderAdSlot;
Promise<record<USVString, USVString>> deprecatedRenderURLReplacements;
Promise<DOMString?> directFromSellerSignalsHeaderAdSlot;
Promise<record<USVString, USVString>?> deprecatedRenderURLReplacements;
unsigned long long sellerTimeout;
unsigned short sellerExperimentGroupId;
Promise<record<USVString, any>> perBuyerSignals;
Promise<record<USVString, unsigned long long>> perBuyerTimeouts;
Promise<record<USVString, unsigned long long>> perBuyerCumulativeTimeouts;
Promise<record<USVString, any>?> perBuyerSignals;
Promise<record<USVString, unsigned long long>?> perBuyerTimeouts;
Promise<record<USVString, unsigned long long>?> perBuyerCumulativeTimeouts;
unsigned long long reportingTimeout;
USVString sellerCurrency;
Promise<record<USVString, USVString>> perBuyerCurrencies;
Promise<record<USVString, USVString>?> perBuyerCurrencies;
record<USVString, unsigned short> perBuyerMultiBidLimits;
record<USVString, unsigned short> perBuyerGroupLimits;
record<USVString, unsigned short> perBuyerExperimentGroupIds;
record<USVString, record<USVString, double>> perBuyerPrioritySignals;

sequence<bigint> auctionReportBuyerKeys;
record<DOMString, AuctionReportBuyersConfig> auctionReportBuyers;
AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig;
sequence<DOMString> requiredSellerCapabilities;
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;

record<DOMString, DOMString> requestedSize;
sequence<record<DOMString, DOMString>> allSlotsRequestedSizes;
Promise<undefined> additionalBids;
Expand Down Expand Up @@ -144,13 +168,44 @@ dictionary AdAuctionDataBuyerConfig {
unsigned long targetSize;
};

dictionary StorageInterestGroup : AuctionAdInterestGroup {
unsigned long long joinCount;
unsigned long long bidCount;
sequence<PreviousWin> prevWinsMs;
USVString joiningOrigin;
long long timeSinceGroupJoinedMs;
long long lifetimeRemainingMs;
long long timeSinceLastUpdateMs;
long long timeUntilNextUpdateMs;
unsigned long long estimatedSize;
};

[SecureContext]
partial interface Navigator {
Promise<DOMString> createAuctionNonce();
};

[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]
Expand Down Expand Up @@ -198,6 +253,7 @@ dictionary GenerateBidOutput {
DOMString bidCurrency;
(DOMString or AdRender) render;
any ad;
USVString selectedBuyerAndSellerReportingId;
sequence<(DOMString or AdRender)> adComponents;
double adCost;
unrestricted double modelingSignals;
Expand Down Expand Up @@ -294,6 +350,7 @@ dictionary ReportingBrowserSignals {
USVString componentSeller;

USVString buyerAndSellerReportingId;
USVString selectedBuyerAndSellerReportingId;
};

dictionary ReportResultBrowserSignals : ReportingBrowserSignals {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/interfaces/user-timing.idl
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/wpt/interfaces/web-animations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ dictionary KeyframeAnimationOptions : KeyframeEffectOptions {

dictionary GetAnimationsOptions {
boolean subtree = false;
CSSOMString? pseudoElement = null;
};

partial interface Document {
Expand Down
12 changes: 6 additions & 6 deletions test/fixtures/wpt/interfaces/webaudio.idl
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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 (
Expand All @@ -45,12 +45,12 @@ interface BaseAudioContext : EventTarget {
DynamicsCompressorNode createDynamicsCompressor ();
GainNode createGain ();
IIRFilterNode createIIRFilter (sequence<double> feedforward,
sequence<double> feedback);
sequence<double> feedback);
OscillatorNode createOscillator ();
PannerNode createPanner ();
PeriodicWave createPeriodicWave (sequence<float> real,
sequence<float> imag,
optional PeriodicWaveConstraints constraints = {});
sequence<float> imag,
optional PeriodicWaveConstraints constraints = {});
ScriptProcessorNode createScriptProcessor(
optional unsigned long bufferSize = 0,
optional unsigned long numberOfInputChannels = 2,
Expand Down
10 changes: 9 additions & 1 deletion test/fixtures/wpt/interfaces/webcodecs.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -340,10 +342,13 @@ dictionary VideoFrameInit {
AlphaOption alpha = "keep";

// Default matches image. May be used to efficiently crop. Will trigger
// new computation of displayWidth and displayHeight using images pixel
// new computation of displayWidth and displayHeight using image's pixel
// 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;
Expand All @@ -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;
Expand Down
Loading

0 comments on commit 1a4b325

Please sign in to comment.