diff options
Diffstat (limited to 'components/script_bindings/webidls')
-rw-r--r-- | components/script_bindings/webidls/ImageBitmap.webidl | 3 | ||||
-rw-r--r-- | components/script_bindings/webidls/TestBinding.webidl | 3 | ||||
-rw-r--r-- | components/script_bindings/webidls/URLPattern.webidl | 40 |
3 files changed, 24 insertions, 22 deletions
diff --git a/components/script_bindings/webidls/ImageBitmap.webidl b/components/script_bindings/webidls/ImageBitmap.webidl index aaa35c67995..b9b811eb9bd 100644 --- a/components/script_bindings/webidls/ImageBitmap.webidl +++ b/components/script_bindings/webidls/ImageBitmap.webidl @@ -9,8 +9,7 @@ * You are granted a license to use, reproduce and create derivative works of this document. */ -//[Exposed=(Window,Worker), Serializable, Transferable] -[Exposed=(Window,Worker), Pref="dom_imagebitmap_enabled"] +[Exposed=(Window,Worker), Serializable, Transferable, Pref="dom_imagebitmap_enabled"] interface ImageBitmap { readonly attribute unsigned long width; readonly attribute unsigned long height; diff --git a/components/script_bindings/webidls/TestBinding.webidl b/components/script_bindings/webidls/TestBinding.webidl index f2c45313228..33ba2f41fbb 100644 --- a/components/script_bindings/webidls/TestBinding.webidl +++ b/components/script_bindings/webidls/TestBinding.webidl @@ -627,3 +627,6 @@ dictionary NotUsedAnyWhereElse {}; dictionary RecordFieldWithUnionInside { record<USVString, (USVString or NotUsedAnyWhereElse)> recordWithUnionField; }; + +// https://github.com/servo/servo/issues/28679 +typedef (USVString or undefined) UnionWithUndefinedVariant; diff --git a/components/script_bindings/webidls/URLPattern.webidl b/components/script_bindings/webidls/URLPattern.webidl index f61b65702bc..a29cb650c23 100644 --- a/components/script_bindings/webidls/URLPattern.webidl +++ b/components/script_bindings/webidls/URLPattern.webidl @@ -6,14 +6,14 @@ typedef (USVString or URLPatternInit) URLPatternInput; -[Exposed=(Window,Worker), Pref="dom_urlpattern_enabled"] +[Exposed=(Window,Worker)] interface URLPattern { [Throws] constructor(URLPatternInput input, USVString baseURL, optional URLPatternOptions options = {}); [Throws] constructor(optional URLPatternInput input = {}, optional URLPatternOptions options = {}); - // [Throws] boolean test(optional URLPatternInput input = {}, optional USVString baseURL); + [Throws] boolean test(optional URLPatternInput input = {}, optional USVString baseURL); - // [Throws] URLPatternResult? exec(optional URLPatternInput input = {}, optional USVString baseURL); + [Throws] URLPatternResult? exec(optional URLPatternInput input = {}, optional USVString baseURL); readonly attribute USVString protocol; readonly attribute USVString username; @@ -43,20 +43,20 @@ dictionary URLPatternOptions { boolean ignoreCase = false; }; -// dictionary URLPatternResult { -// sequence<URLPatternInput> inputs; - -// URLPatternComponentResult protocol; -// URLPatternComponentResult username; -// URLPatternComponentResult password; -// URLPatternComponentResult hostname; -// URLPatternComponentResult port; -// URLPatternComponentResult pathname; -// URLPatternComponentResult search; -// URLPatternComponentResult hash; -// }; - -// dictionary URLPatternComponentResult { -// USVString input; -// record<USVString, (USVString or undefined)> groups; -// }; +dictionary URLPatternResult { + sequence<URLPatternInput> inputs; + + URLPatternComponentResult protocol; + URLPatternComponentResult username; + URLPatternComponentResult password; + URLPatternComponentResult hostname; + URLPatternComponentResult port; + URLPatternComponentResult pathname; + URLPatternComponentResult search; + URLPatternComponentResult hash; +}; + +dictionary URLPatternComponentResult { + USVString input; + record<USVString, (USVString or undefined)> groups; +}; |