aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/webidls/URLPattern.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings/webidls/URLPattern.webidl')
-rw-r--r--components/script_bindings/webidls/URLPattern.webidl40
1 files changed, 20 insertions, 20 deletions
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;
+};