Skip to content

Commit

Permalink
Bug 1743984 [wpt PR 31831] - Sync interfaces/ with @webref/idl 2.8.1 …
Browse files Browse the repository at this point in the history
…(manually), a=testonly

Automatic update from web-platform-tests
Sync interfaces/ with @webref/idl 2.8.1 (manually) (#31831)

This is web-platform-tests/wpt#31358 with fixes applied.

interfaces/css-cascade-5.idl is kept around due to:
w3c/browser-specs#438
w3c/csswg-drafts#6841
--

wpt-commits: e1e258720df02a79ead784006c7c8b92c7064caa
wpt-pr: 31831
  • Loading branch information
foolip authored and moz-wptsync-bot committed Dec 20, 2021
1 parent 467a94b commit bcb5961
Show file tree
Hide file tree
Showing 26 changed files with 220 additions and 183 deletions.
Expand Up @@ -5,7 +5,7 @@

idl_test(
['geolocation-API'],
['html'],
['hr-time', 'html'],
idl_array => {
self.audio = document.createElement('audio');
self.video = document.createElement('video');
Expand Down
5 changes: 3 additions & 2 deletions testing/web-platform/tests/interfaces/dom.idl
Expand Up @@ -88,14 +88,15 @@ interface AbortController {

[SameObject] readonly attribute AbortSignal signal;

undefined abort();
undefined abort(optional any reason);
};

[Exposed=(Window,Worker)]
interface AbortSignal : EventTarget {
[NewObject] static AbortSignal abort();
[NewObject] static AbortSignal abort(optional any reason);

readonly attribute boolean aborted;
readonly attribute any reason;

attribute EventHandler onabort;
};
Expand Down
8 changes: 6 additions & 2 deletions testing/web-platform/tests/interfaces/html.idl
Expand Up @@ -43,6 +43,7 @@ interface DOMStringList {
};

enum DocumentReadyState { "loading", "interactive", "complete" };
enum DocumentVisibilityState { "visible", "hidden" };
typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;

[LegacyOverrideBuiltIns]
Expand Down Expand Up @@ -87,9 +88,12 @@ partial interface Document {
boolean queryCommandState(DOMString commandId);
boolean queryCommandSupported(DOMString commandId);
DOMString queryCommandValue(DOMString commandId);
readonly attribute boolean hidden;
readonly attribute DocumentVisibilityState visibilityState;

// special event handler IDL attributes that only apply to Document objects
[LegacyLenientThis] attribute EventHandler onreadystatechange;
attribute EventHandler onvisibilitychange;

// also has obsolete members
};
Expand Down Expand Up @@ -1447,12 +1451,12 @@ interface mixin CanvasTextDrawingStyles {
attribute CanvasTextAlign textAlign; // (default: "start")
attribute CanvasTextBaseline textBaseline; // (default: "alphabetic")
attribute CanvasDirection direction; // (default: "inherit")
attribute double textLetterSpacing; // (default: 0)
attribute double textWordSpacing; // (default: 0)
attribute double letterSpacing; // (default: 0)
attribute CanvasFontKerning fontKerning; // (default: "auto")
attribute CanvasFontStretch fontStretch; // (default: "normal")
attribute CanvasFontVariantCaps fontVariantCaps; // (default: "normal")
attribute CanvasTextRendering textRendering; // (default: "auto")
attribute double wordSpacing; // (default: 0)
};

interface mixin CanvasPath {
Expand Down
4 changes: 2 additions & 2 deletions testing/web-platform/tests/interfaces/notifications.idl
Expand Up @@ -26,7 +26,7 @@ interface Notification : EventTarget {
readonly attribute USVString icon;
readonly attribute USVString badge;
[SameObject] readonly attribute FrozenArray<unsigned long> vibrate;
readonly attribute DOMTimeStamp timestamp;
readonly attribute EpochTimeStamp timestamp;
readonly attribute boolean renotify;
readonly attribute boolean silent;
readonly attribute boolean requireInteraction;
Expand All @@ -45,7 +45,7 @@ dictionary NotificationOptions {
USVString icon;
USVString badge;
VibratePattern vibrate;
DOMTimeStamp timestamp;
EpochTimeStamp timestamp;
boolean renotify = false;
boolean silent = false;
boolean requireInteraction = false;
Expand Down
14 changes: 0 additions & 14 deletions testing/web-platform/tests/interfaces/page-visibility.idl

This file was deleted.

8 changes: 0 additions & 8 deletions testing/web-platform/tests/interfaces/permissions.idl
Expand Up @@ -57,14 +57,6 @@ enum PermissionName {
"xr-spatial-tracking",
};

dictionary PushPermissionDescriptor : PermissionDescriptor {
boolean userVisibleOnly = false;
};

dictionary MidiPermissionDescriptor : PermissionDescriptor {
boolean sysex = false;
};

dictionary DevicePermissionDescriptor : PermissionDescriptor {
DOMString deviceId;
};
Expand Down
16 changes: 7 additions & 9 deletions testing/web-platform/tests/interfaces/push-api.idl
Expand Up @@ -3,6 +3,10 @@
// (https://github.com/w3c/webref)
// Source: Push API (https://w3c.github.io/push-api/)

dictionary PushPermissionDescriptor : PermissionDescriptor {
boolean userVisibleOnly = false;
};

[SecureContext]
partial interface ServiceWorkerRegistration {
readonly attribute PushManager pushManager;
Expand All @@ -14,7 +18,7 @@ interface PushManager {

Promise<PushSubscription> subscribe(optional PushSubscriptionOptionsInit options = {});
Promise<PushSubscription?> getSubscription();
Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options = {});
Promise<PermissionState> permissionState(optional PushSubscriptionOptionsInit options = {});
};

[Exposed=(Window,Worker), SecureContext]
Expand All @@ -31,7 +35,7 @@ dictionary PushSubscriptionOptionsInit {
[Exposed=(Window,Worker), SecureContext]
interface PushSubscription {
readonly attribute USVString endpoint;
readonly attribute DOMTimeStamp? expirationTime;
readonly attribute EpochTimeStamp? expirationTime;
[SameObject] readonly attribute PushSubscriptionOptions options;
ArrayBuffer? getKey(PushEncryptionKeyName name);
Promise<boolean> unsubscribe();
Expand All @@ -41,7 +45,7 @@ interface PushSubscription {

dictionary PushSubscriptionJSON {
USVString endpoint;
DOMTimeStamp? expirationTime;
EpochTimeStamp? expirationTime = null;
record<DOMString, USVString> keys;
};

Expand Down Expand Up @@ -87,9 +91,3 @@ dictionary PushSubscriptionChangeEventInit : ExtendableEventInit {
PushSubscription newSubscription = null;
PushSubscription oldSubscription = null;
};

enum PushPermissionState {
"denied",
"granted",
"prompt",
};
Expand Up @@ -43,3 +43,9 @@ dictionary PaymentCredentialInstrument {
required DOMString displayName;
required USVString icon;
};

enum TransactionAutomationMode {
"none",
"autoaccept",
"autoreject"
};
2 changes: 1 addition & 1 deletion testing/web-platform/tests/interfaces/service-workers.idl
Expand Up @@ -120,7 +120,7 @@ interface Client {

[Exposed=ServiceWorker]
interface WindowClient : Client {
readonly attribute VisibilityState visibilityState;
readonly attribute DocumentVisibilityState visibilityState;
readonly attribute boolean focused;
[SameObject] readonly attribute FrozenArray<USVString> ancestorOrigins;
[NewObject] Promise<WindowClient> focus();
Expand Down
3 changes: 3 additions & 0 deletions testing/web-platform/tests/interfaces/trusted-types.idl
Expand Up @@ -7,18 +7,21 @@
interface TrustedHTML {
stringifier;
DOMString toJSON();
static TrustedHTML fromLiteral(object templateStringsArray);
};

[Exposed=(Window,Worker)]
interface TrustedScript {
stringifier;
DOMString toJSON();
static TrustedScript fromLiteral(object templateStringsArray);
};

[Exposed=(Window,Worker)]
interface TrustedScriptURL {
stringifier;
USVString toJSON();
static TrustedScriptURL fromLiteral(object templateStringsArray);
};

[Exposed=(Window,Worker)] interface TrustedTypePolicyFactory {
Expand Down
96 changes: 48 additions & 48 deletions testing/web-platform/tests/interfaces/wai-aria.idl
Expand Up @@ -6,54 +6,54 @@
interface mixin ARIAMixin {
attribute DOMString? role;

attribute DOMString ariaAtomic;
attribute DOMString ariaAutoComplete;
attribute DOMString ariaBusy;
attribute DOMString ariaChecked;
attribute DOMString ariaColCount;
attribute DOMString ariaColIndex;
attribute DOMString ariaColIndexText;
attribute DOMString ariaColSpan;

attribute DOMString ariaCurrent;

attribute DOMString ariaDescription;

attribute DOMString ariaDisabled;

attribute DOMString ariaExpanded;

attribute DOMString ariaHasPopup;
attribute DOMString ariaHidden;
attribute DOMString ariaInvalid;
attribute DOMString ariaKeyShortcuts;
attribute DOMString ariaLabel;

attribute DOMString ariaLevel;
attribute DOMString ariaLive;
attribute DOMString ariaModal;
attribute DOMString ariaMultiLine;
attribute DOMString ariaMultiSelectable;
attribute DOMString ariaOrientation;

attribute DOMString ariaPlaceholder;
attribute DOMString ariaPosInSet;
attribute DOMString ariaPressed;
attribute DOMString ariaReadOnly;

attribute DOMString ariaRequired;
attribute DOMString ariaRoleDescription;
attribute DOMString ariaRowCount;
attribute DOMString ariaRowIndex;
attribute DOMString ariaRowIndexText;
attribute DOMString ariaRowSpan;
attribute DOMString ariaSelected;
attribute DOMString ariaSetSize;
attribute DOMString ariaSort;
attribute DOMString ariaValueMax;
attribute DOMString ariaValueMin;
attribute DOMString ariaValueNow;
attribute DOMString ariaValueText;
attribute DOMString? ariaAtomic;
attribute DOMString? ariaAutoComplete;
attribute DOMString? ariaBusy;
attribute DOMString? ariaChecked;
attribute DOMString? ariaColCount;
attribute DOMString? ariaColIndex;
attribute DOMString? ariaColIndexText;
attribute DOMString? ariaColSpan;

attribute DOMString? ariaCurrent;

attribute DOMString? ariaDescription;

attribute DOMString? ariaDisabled;

attribute DOMString? ariaExpanded;

attribute DOMString? ariaHasPopup;
attribute DOMString? ariaHidden;
attribute DOMString? ariaInvalid;
attribute DOMString? ariaKeyShortcuts;
attribute DOMString? ariaLabel;

attribute DOMString? ariaLevel;
attribute DOMString? ariaLive;
attribute DOMString? ariaModal;
attribute DOMString? ariaMultiLine;
attribute DOMString? ariaMultiSelectable;
attribute DOMString? ariaOrientation;

attribute DOMString? ariaPlaceholder;
attribute DOMString? ariaPosInSet;
attribute DOMString? ariaPressed;
attribute DOMString? ariaReadOnly;

attribute DOMString? ariaRequired;
attribute DOMString? ariaRoleDescription;
attribute DOMString? ariaRowCount;
attribute DOMString? ariaRowIndex;
attribute DOMString? ariaRowIndexText;
attribute DOMString? ariaRowSpan;
attribute DOMString? ariaSelected;
attribute DOMString? ariaSetSize;
attribute DOMString? ariaSort;
attribute DOMString? ariaValueMax;
attribute DOMString? ariaValueMin;
attribute DOMString? ariaValueNow;
attribute DOMString? ariaValueText;
};

Element includes ARIAMixin;
1 change: 0 additions & 1 deletion testing/web-platform/tests/interfaces/web-animations-2.idl
Expand Up @@ -42,7 +42,6 @@ partial dictionary ComputedEffectTiming {
CSSNumberish endTime;
CSSNumberish activeDuration;
CSSNumberish? localTime;
CSSNumberish? progress;
};

[Exposed=Window]
Expand Down
1 change: 1 addition & 0 deletions testing/web-platform/tests/interfaces/web-animations.idl
Expand Up @@ -83,6 +83,7 @@ enum FillMode { "none", "forwards", "backwards", "both", "auto" };
enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };

dictionary ComputedEffectTiming : EffectTiming {
double? progress;
unrestricted double? currentIteration;
};

Expand Down
2 changes: 1 addition & 1 deletion testing/web-platform/tests/interfaces/webcodecs.idl
Expand Up @@ -91,7 +91,7 @@ interface VideoEncoder {
undefined reset();
undefined close();

static Promise<boolean> isConfigSupported(VideoEncoderConfig config);
static Promise<VideoEncoderSupport> isConfigSupported(VideoEncoderConfig config);
};

dictionary VideoEncoderInit {
Expand Down

0 comments on commit bcb5961

Please sign in to comment.