Skip to content

Commit 08fa295

Browse files
Uzlopakgithub-actions[bot]
authored andcommitted
chore: update WPT
1 parent 503ad76 commit 08fa295

15 files changed

+162
-92
lines changed

test/fixtures/wpt/interfaces/compute-pressure.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// (https://github.com/w3c/webref)
44
// Source: Compute Pressure Level 1 (https://w3c.github.io/compute-pressure/)
55

6-
enum PressureSource { "thermals", "cpu" };
6+
enum PressureSource { "cpu" };
77

88
enum PressureState { "nominal", "fair", "serious", "critical" };
99

test/fixtures/wpt/interfaces/fedcm.idl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
5353
};
5454

5555
dictionary IdentityProviderWellKnown {
56-
required sequence<USVString> provider_urls;
56+
sequence<USVString> provider_urls;
57+
USVString accounts_endpoint;
58+
USVString login_url;
5759
};
5860

5961
dictionary IdentityProviderIcon {

test/fixtures/wpt/interfaces/gpc.idl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Global Privacy Control (GPC) (https://w3c.github.io/gpc/)
5+
6+
interface mixin GlobalPrivacyControl {
7+
readonly attribute boolean globalPrivacyControl;
8+
};
9+
Navigator includes GlobalPrivacyControl;
10+
WorkerNavigator includes GlobalPrivacyControl;

test/fixtures/wpt/interfaces/html.idl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,6 +2520,11 @@ interface MessageChannel {
25202520
readonly attribute MessagePort port2;
25212521
};
25222522

2523+
interface mixin MessageEventTarget {
2524+
attribute EventHandler onmessage;
2525+
attribute EventHandler onmessageerror;
2526+
};
2527+
25232528
[Exposed=(Window,Worker,AudioWorklet), Transferable]
25242529
interface MessagePort : EventTarget {
25252530
undefined postMessage(any message, sequence<object> transfer);
@@ -2528,11 +2533,11 @@ interface MessagePort : EventTarget {
25282533
undefined close();
25292534

25302535
// event handlers
2531-
attribute EventHandler onmessage;
2532-
attribute EventHandler onmessageerror;
25332536
attribute EventHandler onclose;
25342537
};
25352538

2539+
MessagePort includes MessageEventTarget;
2540+
25362541
dictionary StructuredSerializeOptions {
25372542
sequence<object> transfer = [];
25382543
};
@@ -2571,11 +2576,10 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
25712576
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
25722577

25732578
undefined close();
2574-
2575-
attribute EventHandler onmessage;
2576-
attribute EventHandler onmessageerror;
25772579
};
25782580

2581+
DedicatedWorkerGlobalScope includes MessageEventTarget;
2582+
25792583
[Global=(Worker,SharedWorker),Exposed=SharedWorker]
25802584
interface SharedWorkerGlobalScope : WorkerGlobalScope {
25812585
[Replaceable] readonly attribute DOMString name;
@@ -2597,8 +2601,6 @@ interface Worker : EventTarget {
25972601

25982602
undefined postMessage(any message, sequence<object> transfer);
25992603
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
2600-
attribute EventHandler onmessage;
2601-
attribute EventHandler onmessageerror;
26022604
};
26032605

26042606
dictionary WorkerOptions {
@@ -2610,6 +2612,7 @@ dictionary WorkerOptions {
26102612
enum WorkerType { "classic", "module" };
26112613

26122614
Worker includes AbstractWorker;
2615+
Worker includes MessageEventTarget;
26132616

26142617
[Exposed=Window]
26152618
interface SharedWorker : EventTarget {

test/fixtures/wpt/interfaces/long-animation-frames.idl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
1919
[Default] object toJSON();
2020
};
2121

22+
PerformanceLongAnimationFrameTiming includes PaintTimingMixin;
23+
2224
enum ScriptInvokerType {
2325
"classic-script",
2426
"module-script",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Captured Surface Control (https://w3c.github.io/mediacapture-surface-control/)
5+
6+
partial interface CaptureController {
7+
sequence<long> getSupportedZoomLevels();
8+
long getZoomLevel();
9+
Promise<undefined> setZoomLevel(long zoomLevel);
10+
attribute EventHandler oncapturedzoomlevelchange;
11+
};
12+
13+
partial interface CaptureController {
14+
constructor();
15+
Promise<undefined> forwardWheel(HTMLElement element);
16+
};

test/fixtures/wpt/interfaces/sanitizer-api.idl

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,22 @@ dictionary SetHTMLOptions {
99

1010
[Exposed=(Window,Worker)]
1111
interface Sanitizer {
12-
constructor(optional SanitizerConfig config = {});
12+
constructor(optional SanitizerConfig configuration = {});
13+
14+
// Query configuration:
1315
SanitizerConfig get();
14-
SanitizerConfig getUnsafe();
16+
17+
// Modify a Sanitizer’s lists and fields:
18+
undefined allowElement(SanitizerElementWithAttributes element);
19+
undefined removeElement(SanitizerElement element);
20+
undefined replaceElementWithChildren(SanitizerElement element);
21+
undefined allowAttribute(SanitizerAttribute attribute);
22+
undefined removeAttribute(SanitizerAttribute attribute);
23+
undefined setComments(boolean allow);
24+
undefined setDataAttributes(boolean allow);
25+
26+
// Remove markup that executes script. May modify multiple lists:
27+
undefined removeUnsafe();
1528
};
1629

1730
dictionary SanitizerElementNamespace {

test/fixtures/wpt/interfaces/vibration.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: Vibration API (Second Edition) (https://w3c.github.io/vibration/)
4+
// Source: Vibration API (https://w3c.github.io/vibration/)
55

66
typedef (unsigned long or sequence<unsigned long>) VibratePattern;
77

test/fixtures/wpt/interfaces/webnn.idl

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,18 @@ interface ML {
3232
Promise<MLContext> createContext(GPUDevice gpuDevice);
3333
};
3434

35-
typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
36-
37-
dictionary MLComputeResult {
38-
MLNamedArrayBufferViews inputs;
39-
MLNamedArrayBufferViews outputs;
40-
};
35+
typedef record<USVString, MLTensor> MLNamedTensors;
4136

4237
[SecureContext, Exposed=(Window, DedicatedWorker)]
4338
interface MLContext {
44-
Promise<MLComputeResult> compute(
45-
MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
39+
undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
40+
41+
Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
42+
43+
Promise<ArrayBuffer> readTensor(MLTensor tensor);
44+
Promise<undefined> readTensor(MLTensor tensor, AllowSharedBufferSource outputData);
45+
46+
undefined writeTensor(MLTensor tensor, AllowSharedBufferSource inputData);
4647

4748
MLOpSupportLimits opSupportLimits();
4849
};
@@ -105,6 +106,21 @@ dictionary MLOperatorOptions {
105106

106107
typedef (bigint or unrestricted double) MLNumber;
107108

109+
dictionary MLTensorDescriptor : MLOperandDescriptor {
110+
boolean readable = false;
111+
boolean writable = false;
112+
};
113+
114+
[SecureContext, Exposed=(Window, DedicatedWorker)]
115+
interface MLTensor {
116+
readonly attribute MLOperandDataType dataType;
117+
readonly attribute FrozenArray<unsigned long> shape;
118+
readonly attribute boolean readable;
119+
readonly attribute boolean writable;
120+
121+
undefined destroy();
122+
};
123+
108124
typedef record<USVString, MLOperand> MLNamedOperands;
109125

110126
[SecureContext, Exposed=(Window, DedicatedWorker)]
@@ -116,7 +132,8 @@ interface MLGraphBuilder {
116132
MLOperand input(USVString name, MLOperandDescriptor descriptor);
117133

118134
// Create an operand for a graph constant.
119-
MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
135+
MLOperand constant(MLOperandDescriptor descriptor,
136+
AllowSharedBufferSource buffer);
120137

121138
// Create a scalar operand from the specified number of the specified type.
122139
MLOperand constant(MLOperandDataType type, MLNumber value);

test/fixtures/wpt/resources/idlharness-shadowrealm.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)