diff --git a/specification/window.browser.bs b/specification/window.browser.bs index 52621cb0a..d2ef00e7b 100644 --- a/specification/window.browser.bs +++ b/specification/window.browser.bs @@ -42,11 +42,23 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/ and are left up to User Agent implementation. +
+

{{Browser}}

+ +
+    [Exposed=(Window,Worker), LegacyNoInterfaceObject]
+    interface Browser {
+      // Intentionally left blank.
+    };
+  
+ + Note: This interface is intentionally left blank to allow APIs to be exposed by other specifications. +
-

+

window.browser API -

+ {{browser}} is UA defined attribute exposed on {{window}}. When implemented, it MUST be used only for WebExtension related functionality. @@ -89,15 +101,15 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
   partial interface Window {
-   attribute object browser;
+   attribute Browser browser;
   };
 
 
-

+

Worker API -

+ When {{browser}} is defined on {{window}}, it SHOULD also be exposed on {{ServiceWorkerGlobalScope}} of origins associated with WebExtensions. @@ -106,6 +118,6 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
   partial interface ServiceWorkerGlobalScope {
-    attribute object browser;
+    attribute Browser browser;
   };