Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WPT #3527

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions test/fixtures/wpt/interfaces/css-view-transitions-2.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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<CSSOMString> types;
};

Expand All @@ -22,11 +20,10 @@ partial interface ViewTransition {
};

dictionary StartViewTransitionOptions {
UpdateCallback? update = null;
ViewTransitionUpdateCallback? update = null;
sequence<DOMString>? types = null;
};

partial interface Document {

ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {});
ViewTransition startViewTransition(optional (ViewTransitionUpdateCallback or StartViewTransitionOptions) callbackOptions = {});
};
2 changes: 1 addition & 1 deletion test/fixtures/wpt/interfaces/css-view-transitions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> ();
callback ViewTransitionUpdateCallback = Promise<any> ();

[Exposed=Window]
interface ViewTransition {
Expand Down
13 changes: 13 additions & 0 deletions test/fixtures/wpt/interfaces/css-viewport.idl
Original file line number Diff line number Diff line change
@@ -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<DOMRect>? segments;
};
6 changes: 3 additions & 3 deletions test/fixtures/wpt/interfaces/digital-identities.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ partial dictionary CredentialRequestOptions {
};

dictionary DigitalCredentialRequestOptions {
sequence<IdentityRequestProvider> providers;
sequence<DigitalCredentialsProvider> providers;
};

dictionary IdentityRequestProvider {
dictionary DigitalCredentialsProvider {
required DOMString protocol;
required object request;
};

[Exposed=Window, SecureContext]
interface DigitalCredential : Credential {
readonly attribute DOMString protocol;
readonly attribute any data;
readonly attribute object data;
};
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/wpt/interfaces/fenced-frame.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
1 change: 1 addition & 0 deletions test/fixtures/wpt/interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/wpt/interfaces/ink-enhancement.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
47 changes: 26 additions & 21 deletions test/fixtures/wpt/interfaces/shared-storage.idl
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
undefined register(DOMString name,
Function operationCtor);

readonly attribute WorkletSharedStorage sharedStorage;
readonly attribute SharedStorage sharedStorage;
};

dictionary SharedStorageUrlWithMetadata {
required USVString url;
object reportingMetadata;
};

partial interface Window {
[SecureContext] readonly attribute SharedStorage? sharedStorage;
};

[Exposed=(Window,SharedStorageWorklet)]
interface SharedStorage {
Promise<any> set(DOMString key,
Expand All @@ -40,23 +44,37 @@ interface SharedStorage {
DOMString value);
Promise<any> delete(DOMString key);
Promise<any> clear();
};

dictionary SharedStorageSetMethodOptions {
boolean ignoreIfPresent = false;
};

[Exposed=(Window)]
interface WindowSharedStorage : SharedStorage {
[Exposed=Window]
Promise<SharedStorageResponse> selectURL(DOMString name,
sequence<SharedStorageUrlWithMetadata> urls,
optional SharedStorageRunOperationMethodOptions options = {});

[Exposed=Window]
Promise<any> run(DOMString name,
optional SharedStorageRunOperationMethodOptions options = {});

[Exposed=Window]
Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional SharedStorageWorkletOptions options = {});

[Exposed=Window]
readonly attribute SharedStorageWorklet worklet;

[Exposed=SharedStorageWorklet]
Promise<DOMString> get(DOMString key);

[Exposed=SharedStorageWorklet]
Promise<unsigned long> length();

[Exposed=SharedStorageWorklet]
Promise<double> remainingBudget();

[Exposed=SharedStorageWorklet]
async iterable<DOMString, DOMString>;
};

dictionary SharedStorageSetMethodOptions {
boolean ignoreIfPresent = false;
};

dictionary SharedStorageRunOperationMethodOptions {
Expand All @@ -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<DOMString> get(DOMString key);
Promise<unsigned long> length();
Promise<double> remainingBudget();

async iterable<DOMString, DOMString>;
};

interface mixin HTMLSharedStorageWritableElementUtils {
[CEReactions, SecureContext] attribute boolean sharedStorageWritable;
};
Expand Down
26 changes: 26 additions & 0 deletions test/fixtures/wpt/interfaces/turtledove.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ partial interface Navigator {

dictionary AuctionAd {
required USVString renderURL;
USVString sizeGroup;
any metadata;

USVString buyerReportingId;
USVString buyerAndSellerReportingId;
sequence<USVString> allowedReportingOrigins;
};

dictionary AuctionAdInterestGroupSize {
required USVString width;
required USVString height;
};

dictionary GenerateBidInterestGroup {
required USVString owner;
required USVString name;
Expand All @@ -36,6 +42,8 @@ dictionary GenerateBidInterestGroup {
any userBiddingSignals;
sequence<AuctionAd> ads;
sequence<AuctionAd> adComponents;
record<DOMString, AuctionAdInterestGroupSize> adSizes;
record<DOMString, sequence<DOMString>> sizeGroups;
};

dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
Expand Down Expand Up @@ -104,13 +112,31 @@ dictionary AuctionAdConfig {
sequence<AuctionAdConfig> componentAuctions = [];
AbortSignal? signal;
Promise<boolean> resolveToConfig;

Promise<Uint8Array> serverResponse;
USVString requestId;
};

[SecureContext]
partial interface Navigator {
boolean canLoadAdAuctionFencedFrame();
};

[SecureContext]
partial interface Navigator {
Promise<AdAuctionData> getInterestGroupAdAuctionData(AdAuctionDataConfig config);
};

dictionary AdAuctionDataConfig {
required USVString seller;
required USVString coordinatorOrigin;
};

dictionary AdAuctionData {
required Uint8Array request;
required USVString requestId;
};

[SecureContext]
partial interface Navigator {
Promise<DOMString> createAuctionNonce();
Expand Down
31 changes: 29 additions & 2 deletions test/fixtures/wpt/interfaces/webauthn.idl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,30 @@ dictionary PublicKeyCredentialRequestOptionsJSON {
AuthenticationExtensionsClientInputsJSON extensions;
};

partial interface PublicKeyCredential {
static Promise<undefined> signalUnknownCredential(UnknownCredentialOptions options);
static Promise<undefined> signalAllAcceptedCredentials(AllAcceptedCredentialsOptions options);
static Promise<undefined> signalCurrentUserDetails(CurrentUserDetailsOptions options);
};

dictionary UnknownCredentialOptions {
required DOMString rpId;
required Base64URLString credentialId;
};

dictionary AllAcceptedCredentialsOptions {
required DOMString rpId;
required Base64URLString userId;
required sequence<Base64URLString> 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;
Expand Down Expand Up @@ -272,7 +296,10 @@ enum ClientCapability {
"hybridTransport",
"passkeyPlatformAuthenticator",
"userVerifyingPlatformAuthenticator",
"relatedOrigins"
"relatedOrigins",
"signalAllAcceptedCredentials",
"signalCurrentUserDetails",
"signalUnknownCredential"
};

enum PublicKeyCredentialHints {
Expand Down Expand Up @@ -303,7 +330,7 @@ partial dictionary AuthenticationExtensionsClientInputs {

dictionary CredentialPropertiesOutput {
boolean rk;
USVString authenticatorDisplayName;
DOMString authenticatorDisplayName;
};

partial dictionary AuthenticationExtensionsClientOutputs {
Expand Down
4 changes: 1 addition & 3 deletions test/fixtures/wpt/interfaces/webgpu.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -101,7 +100,7 @@ interface GPUAdapter {
dictionary GPUDeviceDescriptor
: GPUObjectDescriptorBase {
sequence<GPUFeatureName> requiredFeatures = [];
record<DOMString, GPUSize64> requiredLimits = {};
record<DOMString, (GPUSize64 or undefined)> requiredLimits = {};
GPUQueueDescriptor defaultQueue = {};
};

Expand Down Expand Up @@ -579,7 +578,6 @@ GPUShaderModule includes GPUObjectBase;
dictionary GPUShaderModuleDescriptor
: GPUObjectDescriptorBase {
required USVString code;
object sourceMap;
sequence<GPUShaderModuleCompilationHint> compilationHints = [];
};

Expand Down
1 change: 1 addition & 0 deletions test/fixtures/wpt/interfaces/webrtc.idl
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ dictionary RTCRtpCodingParameters {

dictionary RTCRtpEncodingParameters : RTCRtpCodingParameters {
boolean active = true;
RTCRtpCodec codec;
unsigned long maxBitrate;
double maxFramerate;
double scaleResolutionDownBy;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/interfaces/webxr.idl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ interface XRInputSource {
[SameObject] readonly attribute XRSpace targetRaySpace;
[SameObject] readonly attribute XRSpace? gripSpace;
[SameObject] readonly attribute FrozenArray<DOMString> profiles;
[SameObject] readonly attribute boolean skipRendering;
readonly attribute boolean skipRendering;
};

[SecureContext, Exposed=Window]
Expand Down
Loading