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

Sync interfaces/ with @webref/idl 3.58.0 #49760

Merged
merged 1 commit into from
Dec 18, 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
4 changes: 2 additions & 2 deletions interfaces/dom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ interface Node : EventTarget {
[CEReactions] attribute DOMString? textContent;
[CEReactions] undefined normalize();

[CEReactions, NewObject] Node cloneNode(optional boolean deep = false);
[CEReactions, NewObject] Node cloneNode(optional boolean subtree = false);
boolean isEqualNode(Node? otherNode);
boolean isSameNode(Node? otherNode); // legacy alias of ===

Expand Down Expand Up @@ -291,7 +291,7 @@ interface Document : Node {
[NewObject] Comment createComment(DOMString data);
[NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);

[CEReactions, NewObject] Node importNode(Node node, optional boolean deep = false);
[CEReactions, NewObject] Node importNode(Node node, optional boolean subtree = false);
[CEReactions] Node adoptNode(Node node);

[NewObject] Attr createAttribute(DOMString localName);
Expand Down
2 changes: 2 additions & 0 deletions interfaces/element-timing.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ interface PerformanceElementTiming : PerformanceEntry {
[Default] object toJSON();
};

PerformanceElementTiming includes PaintTimingMixin;

partial interface Element {
[CEReactions] attribute DOMString elementTiming;
};
19 changes: 19 additions & 0 deletions interfaces/login-status.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Login Status API (https://w3c-fedid.github.io/login-status/)

enum LoginStatus {
"logged-in",
"logged-out",
};

[Exposed=Window, SecureContext]

interface NavigatorLogin {
Promise<undefined> setStatus(LoginStatus status);
};

partial interface Navigator {
[SecureContext] readonly attribute NavigatorLogin login;
};
4 changes: 2 additions & 2 deletions interfaces/observable.idl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface Subscriber {
readonly attribute AbortSignal signal;
};

// SubscribeCallback is where the Observable "creators" code lives. Its
// SubscribeCallback is where the Observable "creator's" code lives. It's
// called when subscribe() is called, to set up a new subscription.
callback SubscribeCallback = undefined (Subscriber subscriber);
callback ObservableSubscriptionCallback = undefined (any value);
Expand Down Expand Up @@ -63,7 +63,7 @@ interface Observable {
constructor(SubscribeCallback callback);
undefined subscribe(optional ObserverUnion observer = {}, optional SubscribeOptions options = {});

// Constructs a native Observable from value if its any of the following:
// Constructs a native Observable from value if it's any of the following:
// - Observable
// - AsyncIterable
// - Iterable
Expand Down
8 changes: 6 additions & 2 deletions interfaces/sanitizer-api.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
// (https://github.com/w3c/webref)
// Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)

enum SanitizerPresets { "default" };
dictionary SetHTMLOptions {
(Sanitizer or SanitizerConfig) sanitizer = {};
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = "default";
};
dictionary SetHTMLUnsafeOptions {
(Sanitizer or SanitizerConfig or SanitizerPresets) sanitizer = {};
};

[Exposed=(Window,Worker)]
interface Sanitizer {
constructor(optional SanitizerConfig configuration = {});
constructor(optional (SanitizerConfig or SanitizerPresets) configuration = "default");

// Query configuration:
SanitizerConfig get();
Expand Down
8 changes: 8 additions & 0 deletions interfaces/shared-storage.idl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
readonly attribute PrivateAggregation privateAggregation;

Promise<sequence<StorageInterestGroup>> interestGroups();

readonly attribute SharedStorageWorkletNavigator navigator;
};

dictionary SharedStorageUrlWithMetadata {
Expand Down Expand Up @@ -106,3 +108,9 @@ HTMLImageElement includes HTMLSharedStorageWritableElementUtils;
partial dictionary RequestInit {
boolean sharedStorageWritable;
};

[
Exposed=SharedStorageWorklet
] interface SharedStorageWorkletNavigator {};

SharedStorageWorkletNavigator includes NavigatorLocks;
4 changes: 2 additions & 2 deletions interfaces/web-locks.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface mixin NavigatorLocks {
Navigator includes NavigatorLocks;
WorkerNavigator includes NavigatorLocks;

[SecureContext, Exposed=(Window,Worker)]
[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)]
interface LockManager {
Promise<any> request(DOMString name,
LockGrantedCallback callback);
Expand Down Expand Up @@ -43,7 +43,7 @@ dictionary LockInfo {
DOMString clientId;
};

[SecureContext, Exposed=(Window,Worker)]
[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)]
interface Lock {
readonly attribute DOMString name;
readonly attribute LockMode mode;
Expand Down