From a53119eef0ea20c20bac6c96dfb9c8ab6f4db5c8 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 12 Oct 2021 16:49:23 +0200 Subject: [PATCH] Expose URL/URLSearchParams everywhere Ref: https://github.com/tc39/proposal-shadowrealm/issues/331 --- url.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url.bs b/url.bs index 1650cf47..9ba8b75c 100644 --- a/url.bs +++ b/url.bs @@ -2871,7 +2871,7 @@ takes a string input, UTF-8 encodes it, and then returns the r

URL class

-[Exposed=(Window,Worker),
+[Exposed=*,
  LegacyWindowAlias=webkitURL]
 interface URL {
   constructor(USVString url, optional USVString base);
@@ -3195,7 +3195,7 @@ does return a URL-port string so one might have assumed the setter to alw
 

URLSearchParams class

-[Exposed=(Window,Worker)]
+[Exposed=*]
 interface URLSearchParams {
   constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");