aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings')
-rw-r--r--components/script_bindings/error.rs2
-rw-r--r--components/script_bindings/webidls/CSSStyleSheet.webidl1
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script_bindings/error.rs b/components/script_bindings/error.rs
index 8424ff0fa95..a95d0b0b78c 100644
--- a/components/script_bindings/error.rs
+++ b/components/script_bindings/error.rs
@@ -59,6 +59,8 @@ pub enum Error {
Data,
/// OperationError DOMException
Operation,
+ /// NotAllowedError DOMException
+ NotAllowed,
/// TypeError JavaScript Error
Type(String),
diff --git a/components/script_bindings/webidls/CSSStyleSheet.webidl b/components/script_bindings/webidls/CSSStyleSheet.webidl
index 1241b5c2769..302e7433300 100644
--- a/components/script_bindings/webidls/CSSStyleSheet.webidl
+++ b/components/script_bindings/webidls/CSSStyleSheet.webidl
@@ -11,6 +11,7 @@ interface CSSStyleSheet : StyleSheet {
[Throws, SameObject] readonly attribute CSSRuleList cssRules;
[Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
[Throws] undefined deleteRule(unsigned long index);
+ [Throws] undefined replaceSync(USVString text);
};
dictionary CSSStyleSheetInit {