summaryrefslogtreecommitdiffstats
path: root/dom/webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/AddonManager.webidl19
-rw-r--r--dom/webidl/CSPDictionaries.webidl2
-rw-r--r--dom/webidl/CSSMarginRule.webidl15
-rw-r--r--dom/webidl/CSSStyleRule.webidl4
-rw-r--r--dom/webidl/Clipboard.webidl2
-rw-r--r--dom/webidl/HTMLAnchorElement.webidl2
-rw-r--r--dom/webidl/HTMLAreaElement.webidl2
-rw-r--r--dom/webidl/HTMLSourceElement.webidl4
-rw-r--r--dom/webidl/IDBFactory.webidl10
-rw-r--r--dom/webidl/PushSubscription.webidl6
-rw-r--r--dom/webidl/RTCDataChannel.webidl2
-rw-r--r--dom/webidl/Selection.webidl2
-rw-r--r--dom/webidl/StorageEvent.webidl7
-rw-r--r--dom/webidl/WebGLRenderingContext.webidl5
-rw-r--r--dom/webidl/WebGPU.webidl3
-rw-r--r--dom/webidl/moz.build1
16 files changed, 47 insertions, 39 deletions
diff --git a/dom/webidl/AddonManager.webidl b/dom/webidl/AddonManager.webidl
index fc94228954..0ccf6c9281 100644
--- a/dom/webidl/AddonManager.webidl
+++ b/dom/webidl/AddonManager.webidl
@@ -79,25 +79,6 @@ interface AddonManager : EventTarget {
* @return A promise that resolves to an instance of AddonInstall.
*/
Promise<AddonInstall> createInstall(optional addonInstallOptions options = {});
-
- /**
- * Opens an Abuse Report dialog window for the addon with the given id.
- * The addon may be currently installed (in which case the report will
- * include the details available locally), or not (in which case the report
- * will include the details that can be retrieved from the AMO API endpoint).
- *
- * @param id
- * The ID of the add-on to report.
- * @return A promise that resolves to a boolean (true when the report
- * has been submitted successfully, false if the user cancelled
- * the report). The Promise is rejected is the report fails
- * for a reason other than user cancellation.
- */
- Promise<boolean> reportAbuse(DOMString id);
-
- // Indicator to content whether handing off the reports to the integrated
- // abuse report panel is enabled.
- readonly attribute boolean abuseReportPanelEnabled;
};
[ChromeOnly,Exposed=Window,HeaderFile="mozilla/AddonManagerWebAPI.h"]
diff --git a/dom/webidl/CSPDictionaries.webidl b/dom/webidl/CSPDictionaries.webidl
index a84162c6e5..1f1591129e 100644
--- a/dom/webidl/CSPDictionaries.webidl
+++ b/dom/webidl/CSPDictionaries.webidl
@@ -32,6 +32,8 @@ dictionary CSP {
sequence<DOMString> worker-src;
sequence<DOMString> script-src-elem;
sequence<DOMString> script-src-attr;
+ sequence<DOMString> require-trusted-types-for;
+ sequence<DOMString> trusted-types;
};
[GenerateToJSON]
diff --git a/dom/webidl/CSSMarginRule.webidl b/dom/webidl/CSSMarginRule.webidl
new file mode 100644
index 0000000000..8210bbb79f
--- /dev/null
+++ b/dom/webidl/CSSMarginRule.webidl
@@ -0,0 +1,15 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * https://drafts.csswg.org/cssom/#the-cssmarginrule-interface
+ */
+
+// https://drafts.csswg.org/cssom/#the-cssmarginrule-interface
+[Pref="layout.css.margin-rules.enabled", Exposed=Window]
+interface CSSMarginRule : CSSRule {
+ readonly attribute UTF8String name;
+ [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
+};
diff --git a/dom/webidl/CSSStyleRule.webidl b/dom/webidl/CSSStyleRule.webidl
index 652e456f65..c48e7f79fa 100644
--- a/dom/webidl/CSSStyleRule.webidl
+++ b/dom/webidl/CSSStyleRule.webidl
@@ -22,6 +22,10 @@ interface CSSStyleRule : CSSGroupingRule {
optional [LegacyNullToEmptyString] DOMString pseudo = "",
optional boolean includeVisitedStyle = false);
[ChromeOnly] sequence<SelectorWarning> getSelectorWarnings();
+ // Get elements on the page matching the rule's selectors. This is helpful for DevTools
+ // so we can avoid computing a desugared selector, which can be very expensive on deeply
+ // nested rules.
+ [ChromeOnly] NodeList querySelectorAll(Node root);
};
enum SelectorWarningKind {
diff --git a/dom/webidl/Clipboard.webidl b/dom/webidl/Clipboard.webidl
index 5bc5cd51bc..d793916c1a 100644
--- a/dom/webidl/Clipboard.webidl
+++ b/dom/webidl/Clipboard.webidl
@@ -53,6 +53,8 @@ interface ClipboardItem {
[NewObject]
Promise<Blob> getType(DOMString type);
+
+ static boolean supports(DOMString type);
};
enum PresentationStyle { "unspecified", "inline", "attachment" };
diff --git a/dom/webidl/HTMLAnchorElement.webidl b/dom/webidl/HTMLAnchorElement.webidl
index 3ca7455f4c..cfa9ddcc9c 100644
--- a/dom/webidl/HTMLAnchorElement.webidl
+++ b/dom/webidl/HTMLAnchorElement.webidl
@@ -21,7 +21,7 @@ interface HTMLAnchorElement : HTMLElement {
[CEReactions, SetterThrows]
attribute DOMString download;
[CEReactions, SetterThrows]
- attribute DOMString ping;
+ attribute USVString ping;
[CEReactions, SetterThrows]
attribute DOMString rel;
[CEReactions, SetterThrows]
diff --git a/dom/webidl/HTMLAreaElement.webidl b/dom/webidl/HTMLAreaElement.webidl
index 7bef4a316c..ca9bbc8596 100644
--- a/dom/webidl/HTMLAreaElement.webidl
+++ b/dom/webidl/HTMLAreaElement.webidl
@@ -28,7 +28,7 @@ interface HTMLAreaElement : HTMLElement {
[CEReactions, SetterThrows]
attribute DOMString download;
[CEReactions, SetterThrows]
- attribute DOMString ping;
+ attribute USVString ping;
[CEReactions, SetterThrows]
attribute DOMString rel;
[CEReactions, SetterThrows]
diff --git a/dom/webidl/HTMLSourceElement.webidl b/dom/webidl/HTMLSourceElement.webidl
index 4917e57c8e..512f18584f 100644
--- a/dom/webidl/HTMLSourceElement.webidl
+++ b/dom/webidl/HTMLSourceElement.webidl
@@ -16,14 +16,14 @@ interface HTMLSourceElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
- attribute DOMString src;
+ attribute USVString src;
[CEReactions, SetterThrows]
attribute DOMString type;
};
partial interface HTMLSourceElement {
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
- attribute DOMString srcset;
+ attribute USVString srcset;
[CEReactions, SetterThrows]
attribute DOMString sizes;
[CEReactions, SetterThrows]
diff --git a/dom/webidl/IDBFactory.webidl b/dom/webidl/IDBFactory.webidl
index 9e9153324f..979335716d 100644
--- a/dom/webidl/IDBFactory.webidl
+++ b/dom/webidl/IDBFactory.webidl
@@ -27,17 +27,11 @@ interface IDBFactory {
[NewObject, Throws, NeedsCallerType]
IDBOpenDBRequest
open(DOMString name,
- [EnforceRange] unsigned long long version);
+ optional [EnforceRange] unsigned long long version);
[NewObject, Throws, NeedsCallerType]
IDBOpenDBRequest
- open(DOMString name,
- optional IDBOpenDBOptions options = {});
-
- [NewObject, Throws, NeedsCallerType]
- IDBOpenDBRequest
- deleteDatabase(DOMString name,
- optional IDBOpenDBOptions options = {});
+ deleteDatabase(DOMString name);
[Throws]
Promise<sequence<IDBDatabaseInfo>> databases();
diff --git a/dom/webidl/PushSubscription.webidl b/dom/webidl/PushSubscription.webidl
index 6acb13d10a..25edfd4d55 100644
--- a/dom/webidl/PushSubscription.webidl
+++ b/dom/webidl/PushSubscription.webidl
@@ -35,9 +35,9 @@ dictionary PushSubscriptionInit
{
required USVString endpoint;
required USVString scope;
- ArrayBuffer? p256dhKey;
- ArrayBuffer? authSecret;
- BufferSource? appServerKey;
+ ArrayBuffer? p256dhKey = null;
+ ArrayBuffer? authSecret = null;
+ BufferSource? appServerKey = null;
EpochTimeStamp? expirationTime = null;
};
diff --git a/dom/webidl/RTCDataChannel.webidl b/dom/webidl/RTCDataChannel.webidl
index 956458bd32..7d03ba20ff 100644
--- a/dom/webidl/RTCDataChannel.webidl
+++ b/dom/webidl/RTCDataChannel.webidl
@@ -36,7 +36,7 @@ interface RTCDataChannel : EventTarget
attribute EventHandler onbufferedamountlow;
attribute RTCDataChannelType binaryType;
[Throws]
- undefined send(DOMString data);
+ undefined send(USVString data);
[Throws]
undefined send(Blob data);
[Throws]
diff --git a/dom/webidl/Selection.webidl b/dom/webidl/Selection.webidl
index 263c50181e..24bc244e7f 100644
--- a/dom/webidl/Selection.webidl
+++ b/dom/webidl/Selection.webidl
@@ -21,6 +21,8 @@ interface Selection {
[NeedsCallerType]
readonly attribute unsigned long focusOffset;
readonly attribute boolean isCollapsed;
+ [ChromeOnly]
+ readonly attribute boolean areNormalAndCrossShadowBoundaryRangesCollapsed;
/**
* Returns the number of ranges in the selection.
*/
diff --git a/dom/webidl/StorageEvent.webidl b/dom/webidl/StorageEvent.webidl
index b41d144603..a612afc4e4 100644
--- a/dom/webidl/StorageEvent.webidl
+++ b/dom/webidl/StorageEvent.webidl
@@ -18,17 +18,16 @@ interface StorageEvent : Event
readonly attribute DOMString? key;
readonly attribute DOMString? oldValue;
readonly attribute DOMString? newValue;
- readonly attribute DOMString? url;
+ readonly attribute USVString url;
readonly attribute Storage? storageArea;
- // Bug 1016053 - This is not spec compliant.
undefined initStorageEvent(DOMString type,
optional boolean canBubble = false,
optional boolean cancelable = false,
optional DOMString? key = null,
optional DOMString? oldValue = null,
optional DOMString? newValue = null,
- optional DOMString? url = null,
+ optional USVString url = "",
optional Storage? storageArea = null);
};
@@ -37,6 +36,6 @@ dictionary StorageEventInit : EventInit
DOMString? key = null;
DOMString? oldValue = null;
DOMString? newValue = null;
- DOMString url = "";
+ USVString url = "";
Storage? storageArea = null;
};
diff --git a/dom/webidl/WebGLRenderingContext.webidl b/dom/webidl/WebGLRenderingContext.webidl
index 00585a06bf..15cf4ee7a8 100644
--- a/dom/webidl/WebGLRenderingContext.webidl
+++ b/dom/webidl/WebGLRenderingContext.webidl
@@ -546,6 +546,11 @@ interface mixin WebGLRenderingContextBase {
readonly attribute GLsizei drawingBufferWidth;
readonly attribute GLsizei drawingBufferHeight;
+ /* Upon context creation, drawingBufferColorSpace and unpackColorSpace both
+ default to the value "srgb". */
+ attribute PredefinedColorSpace drawingBufferColorSpace;
+ //attribute PredefinedColorSpace unpackColorSpace;
+
[WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
[WebGLHandlesContextLoss] boolean isContextLost();
diff --git a/dom/webidl/WebGPU.webidl b/dom/webidl/WebGPU.webidl
index c01d501542..7f15a0edfe 100644
--- a/dom/webidl/WebGPU.webidl
+++ b/dom/webidl/WebGPU.webidl
@@ -602,8 +602,11 @@ interface mixin GPUPipelineBase {
dictionary GPUProgrammableStage {
required GPUShaderModule module;
USVString entryPoint;
+ record<USVString, GPUPipelineConstantValue> constants;
};
+typedef double GPUPipelineConstantValue; // May represent WGSL's bool, f32, i32, u32, and f16 if enabled.
+
//TODO: Serializable
// https://bugzilla.mozilla.org/show_bug.cgi?id=1696219
[Func="mozilla::webgpu::Instance::PrefEnabled",
diff --git a/dom/webidl/moz.build b/dom/webidl/moz.build
index 9f8832d042..58eb0ef8b6 100644
--- a/dom/webidl/moz.build
+++ b/dom/webidl/moz.build
@@ -491,6 +491,7 @@ WEBIDL_FILES = [
"CSSKeyframesRule.webidl",
"CSSLayerBlockRule.webidl",
"CSSLayerStatementRule.webidl",
+ "CSSMarginRule.webidl",
"CSSMediaRule.webidl",
"CSSMozDocumentRule.webidl",
"CSSNamespaceRule.webidl",