Skip to content

Commit 881fd5d

Browse files
chore: update WPT (#3607)
Co-authored-by: Uzlopak <5059100+Uzlopak@users.noreply.github.com>
1 parent c773728 commit 881fd5d

9 files changed

Lines changed: 195 additions & 44 deletions

File tree

test/fixtures/wpt/interfaces/css-fonts.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface CSSFontFaceDescriptors : CSSStyleDeclaration {
3838

3939
[Exposed=Window]
4040
interface CSSFontFaceRule : CSSRule {
41-
readonly attribute CSSFontFaceDescriptors style;
41+
[SameObject, PutForwards=cssText] readonly attribute CSSFontFaceDescriptors style;
4242
};
4343

4444
partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14;

test/fixtures/wpt/interfaces/digital-identities.idl renamed to test/fixtures/wpt/interfaces/digital-credentials.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// GENERATED CONTENT - DO NOT EDIT
22
// Content was automatically extracted by Reffy into webref
33
// (https://github.com/w3c/webref)
4-
// Source: Digital Credentials (https://wicg.github.io/digital-credentials)
4+
// Source: Digital Credentials (https://wicg.github.io/digital-credentials/)
55

66
partial interface Navigator {
77
[SecureContext, SameObject] readonly attribute CredentialsContainer identity;
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
// GENERATED CONTENT - DO NOT EDIT
22
// Content was automatically extracted by Reffy into webref
33
// (https://github.com/w3c/webref)
4-
// Source: Federated Credential Management API (https://fedidcg.github.io/FedCM/)
5-
6-
enum LoginStatus {
7-
"logged-in",
8-
"logged-out",
9-
};
10-
11-
[Exposed=Window, SecureContext]
12-
13-
interface NavigatorLogin {
14-
Promise<undefined> setStatus(LoginStatus status);
15-
};
16-
17-
partial interface Navigator {
18-
[SecureContext] readonly attribute NavigatorLogin login;
19-
};
4+
// Source: Federated Credential Management API (https://w3c-fedid.github.io/FedCM/)
205

216
dictionary IdentityCredentialDisconnectOptions : IdentityProviderConfig {
227
required USVString accountHint;

test/fixtures/wpt/interfaces/ink-enhancement.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[Exposed=Window]
77
interface Ink {
8-
Promise<InkPresenter> requestPresenter(
8+
Promise<DelegatedInkTrailPresenter> requestPresenter(
99
optional InkPresenterParam param = {});
1010
};
1111

@@ -14,7 +14,7 @@ dictionary InkPresenterParam {
1414
};
1515

1616
[Exposed=Window]
17-
interface InkPresenter {
17+
interface DelegatedInkTrailPresenter {
1818
readonly attribute Element? presentationArea;
1919

2020
undefined updateInkTrailStartPoint(PointerEvent event, InkTrailStyle style);
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Observable (https://wicg.github.io/observable/)
5+
6+
[Exposed=*]
7+
interface Subscriber {
8+
undefined next(any value);
9+
undefined error(any error);
10+
undefined complete();
11+
undefined addTeardown(VoidFunction teardown);
12+
13+
// True after the Subscriber is created, up until either
14+
// complete()/error() are invoked, or the subscriber unsubscribes. Inside
15+
// complete()/error(), this attribute is true.
16+
readonly attribute boolean active;
17+
18+
readonly attribute AbortSignal signal;
19+
};
20+
21+
// SubscribeCallback is where the Observable "creator’s" code lives. It’s
22+
// called when subscribe() is called, to set up a new subscription.
23+
callback SubscribeCallback = undefined (Subscriber subscriber);
24+
callback ObservableSubscriptionCallback = undefined (any value);
25+
26+
dictionary SubscriptionObserver {
27+
ObservableSubscriptionCallback next;
28+
ObservableSubscriptionCallback error;
29+
VoidFunction complete;
30+
};
31+
32+
callback ObservableInspectorAbortHandler = undefined (any value);
33+
34+
dictionary ObservableInspector {
35+
ObservableSubscriptionCallback next;
36+
ObservableSubscriptionCallback error;
37+
VoidFunction complete;
38+
39+
VoidFunction subscribe;
40+
ObservableInspectorAbortHandler abort;
41+
};
42+
43+
typedef (ObservableSubscriptionCallback or SubscriptionObserver) ObserverUnion;
44+
typedef (ObservableSubscriptionCallback or ObservableInspector) ObservableInspectorUnion;
45+
46+
dictionary SubscribeOptions {
47+
AbortSignal signal;
48+
};
49+
50+
callback Predicate = boolean (any value, unsigned long long index);
51+
callback Reducer = any (any accumulator, any currentValue, unsigned long long index);
52+
callback Mapper = any (any value, unsigned long long index);
53+
// Differs from Mapper only in return type, since this callback is exclusively
54+
// used to visit each element in a sequence, not transform it.
55+
callback Visitor = undefined (any value, unsigned long long index);
56+
57+
// This callback returns an `any` that must convert into an `Observable`, via
58+
// the `Observable` conversion semantics.
59+
callback CatchCallback = any (any value);
60+
61+
[Exposed=*]
62+
interface Observable {
63+
constructor(SubscribeCallback callback);
64+
undefined subscribe(optional ObserverUnion observer = {}, optional SubscribeOptions options = {});
65+
66+
// Constructs a native Observable from value if it’s any of the following:
67+
// - Observable
68+
// - AsyncIterable
69+
// - Iterable
70+
// - Promise
71+
static Observable from(any value);
72+
73+
// Observable-returning operators. See "Operators" section in the spec.
74+
//
75+
// takeUntil() can consume promises, iterables, async iterables, and other
76+
// observables.
77+
Observable takeUntil(any notifier);
78+
Observable map(Mapper mapper);
79+
Observable filter(Predicate predicate);
80+
Observable take(unsigned long long amount);
81+
Observable drop(unsigned long long amount);
82+
Observable flatMap(Mapper mapper);
83+
Observable switchMap(Mapper mapper);
84+
Observable inspect(optional ObservableInspectorUnion inspect_observer = {});
85+
Observable catch(CatchCallback callback);
86+
Observable finally(VoidFunction callback);
87+
88+
// Promise-returning operators.
89+
Promise<sequence<any>> toArray(optional SubscribeOptions options = {});
90+
Promise<undefined> forEach(Visitor callback, optional SubscribeOptions options = {});
91+
Promise<boolean> every(Predicate predicate, optional SubscribeOptions options = {});
92+
Promise<any> first(optional SubscribeOptions options = {});
93+
Promise<any> last(optional SubscribeOptions options = {});
94+
Promise<any> find(Predicate predicate, optional SubscribeOptions options = {});
95+
Promise<boolean> some(Predicate predicate, optional SubscribeOptions options = {});
96+
Promise<any> reduce(Reducer reducer, optional any initialValue, optional SubscribeOptions options = {});
97+
};
98+
99+
dictionary ObservableEventListenerOptions {
100+
boolean capture = false;
101+
boolean passive;
102+
};
103+
104+
partial interface EventTarget {
105+
Observable when(DOMString type, optional ObservableEventListenerOptions options = {});
106+
};
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Private Aggregation API (https://patcg-individual-drafts.github.io/private-aggregation-api/)
5+
6+
[Exposed=(InterestGroupScriptRunnerGlobalScope,SharedStorageWorklet),
7+
SecureContext]
8+
interface PrivateAggregation {
9+
undefined contributeToHistogram(PAHistogramContribution contribution);
10+
undefined enableDebugMode(optional PADebugModeOptions options = {});
11+
};
12+
13+
dictionary PAHistogramContribution {
14+
required bigint bucket;
15+
required long value;
16+
bigint filteringId = 0;
17+
};
18+
19+
dictionary PADebugModeOptions {
20+
required bigint debugKey;
21+
};
22+
23+
partial interface InterestGroupScriptRunnerGlobalScope {
24+
readonly attribute PrivateAggregation privateAggregation;
25+
};
26+
27+
dictionary PASignalValue {
28+
required DOMString baseValue;
29+
double scale;
30+
(bigint or long) offset;
31+
};
32+
33+
dictionary PAExtendedHistogramContribution {
34+
required (PASignalValue or bigint) bucket;
35+
required (PASignalValue or long) value;
36+
bigint filteringId = 0;
37+
};
38+
39+
[Exposed=InterestGroupScriptRunnerGlobalScope, SecureContext]
40+
partial interface PrivateAggregation {
41+
undefined contributeToHistogramOnEvent(
42+
DOMString event, PAExtendedHistogramContribution contribution);
43+
};
44+
45+
dictionary AuctionReportBuyersConfig {
46+
required bigint bucket;
47+
required double scale;
48+
};
49+
50+
dictionary AuctionReportBuyerDebugModeConfig {
51+
boolean enabled = false;
52+
53+
// Must only be provided if `enabled` is true.
54+
bigint? debugKey;
55+
};
56+
57+
partial dictionary AuctionAdConfig {
58+
sequence<bigint> auctionReportBuyerKeys;
59+
record<DOMString, AuctionReportBuyersConfig> auctionReportBuyers;
60+
AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig;
61+
};
62+
63+
dictionary ProtectedAudiencePrivateAggregationConfig {
64+
USVString aggregationCoordinatorOrigin;
65+
};
66+
67+
partial dictionary AuctionAdConfig {
68+
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
69+
};
70+
71+
partial dictionary AuctionAdInterestGroup {
72+
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
73+
};

test/fixtures/wpt/interfaces/shared-storage.idl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
2424
Function operationCtor);
2525

2626
readonly attribute SharedStorage sharedStorage;
27+
readonly attribute PrivateAggregation privateAggregation;
2728
};
2829

2930
dictionary SharedStorageUrlWithMetadata {
@@ -77,10 +78,17 @@ dictionary SharedStorageSetMethodOptions {
7778
boolean ignoreIfPresent = false;
7879
};
7980

81+
dictionary SharedStoragePrivateAggregationConfig {
82+
USVString aggregationCoordinatorOrigin;
83+
USVString contextId;
84+
[EnforceRange] unsigned long long filteringIdMaxBytes;
85+
};
86+
8087
dictionary SharedStorageRunOperationMethodOptions {
8188
object data;
8289
boolean resolveToConfig = false;
8390
boolean keepAlive = false;
91+
SharedStoragePrivateAggregationConfig privateAggregationConfig;
8492
};
8593

8694
dictionary SharedStorageWorkletOptions : WorkletOptions {

test/fixtures/wpt/interfaces/uievents.idl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -235,26 +235,3 @@ interface TextEvent : UIEvent {
235235
optional Window? view = null,
236236
optional DOMString data = "undefined");
237237
};
238-
239-
[Exposed=Window]
240-
interface MutationEvent : Event {
241-
// attrChangeType
242-
const unsigned short MODIFICATION = 1;
243-
const unsigned short ADDITION = 2;
244-
const unsigned short REMOVAL = 3;
245-
246-
readonly attribute Node? relatedNode;
247-
readonly attribute DOMString prevValue;
248-
readonly attribute DOMString newValue;
249-
readonly attribute DOMString attrName;
250-
readonly attribute unsigned short attrChange;
251-
252-
undefined initMutationEvent(DOMString typeArg,
253-
optional boolean bubblesArg = false,
254-
optional boolean cancelableArg = false,
255-
optional Node? relatedNodeArg = null,
256-
optional DOMString prevValueArg = "",
257-
optional DOMString newValueArg = "",
258-
optional DOMString attrNameArg = "",
259-
optional unsigned short attrChangeArg = 0);
260-
};

test/fixtures/wpt/interfaces/webgpu.idl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ interface GPU {
7878
};
7979

8080
dictionary GPURequestAdapterOptions {
81+
any featureLevel;
8182
GPUPowerPreference powerPreference;
8283
boolean forceFallbackAdapter = false;
8384
};
@@ -111,6 +112,7 @@ enum GPUFeatureName {
111112
"texture-compression-bc-sliced-3d",
112113
"texture-compression-etc2",
113114
"texture-compression-astc",
115+
"texture-compression-astc-sliced-3d",
114116
"timestamp-query",
115117
"indirect-first-instance",
116118
"shader-f16",
@@ -639,7 +641,7 @@ interface mixin GPUPipelineBase {
639641
dictionary GPUProgrammableStage {
640642
required GPUShaderModule module;
641643
USVString entryPoint;
642-
record<USVString, GPUPipelineConstantValue> constants;
644+
record<USVString, GPUPipelineConstantValue> constants = {};
643645
};
644646

645647
typedef double GPUPipelineConstantValue; // May represent WGSL's bool, f32, i32, u32, and f16 if enabled.

0 commit comments

Comments
 (0)