aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/webidls
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings/webidls')
-rw-r--r--components/script_bindings/webidls/Response.webidl1
-rw-r--r--components/script_bindings/webidls/Window.webidl1
2 files changed, 2 insertions, 0 deletions
diff --git a/components/script_bindings/webidls/Response.webidl b/components/script_bindings/webidls/Response.webidl
index 0ced0c13794..d37538d4b6b 100644
--- a/components/script_bindings/webidls/Response.webidl
+++ b/components/script_bindings/webidls/Response.webidl
@@ -9,6 +9,7 @@ interface Response {
[Throws] constructor(optional BodyInit? body = null, optional ResponseInit init = {});
[NewObject] static Response error();
[NewObject, Throws] static Response redirect(USVString url, optional unsigned short status = 302);
+ [NewObject, Throws, BinaryName="createFromJson"] static Response json(any data, optional ResponseInit init = {});
readonly attribute ResponseType type;
diff --git a/components/script_bindings/webidls/Window.webidl b/components/script_bindings/webidls/Window.webidl
index d42ba22ea66..81c442b119f 100644
--- a/components/script_bindings/webidls/Window.webidl
+++ b/components/script_bindings/webidls/Window.webidl
@@ -148,6 +148,7 @@ partial interface Window {
partial interface Window {
// Shouldn't be public, but just to make things work for now
undefined webdriverCallback(optional any result);
+ undefined webdriverException(optional any result);
undefined webdriverTimeout();
};