From 8c0f0726d187996c925cdcb97a40ab04e3ac60ab Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 6 Mar 2023 11:40:15 +0000 Subject: [PATCH] LibWeb/HTML: Include the WindowOrWorkerGlobalScope mixin in Window.idl --- Userland/Libraries/LibWeb/HTML/Window.idl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/Window.idl b/Userland/Libraries/LibWeb/HTML/Window.idl index 1ca2aa2c52..a93357ba8c 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.idl +++ b/Userland/Libraries/LibWeb/HTML/Window.idl @@ -2,6 +2,7 @@ #import #import #import +#import // https://html.spec.whatwg.org/multipage/nav-history-apis.html#window [Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString] @@ -35,12 +36,7 @@ interface Window : EventTarget { undefined postMessage(any message, USVString targetOrigin); // FIXME: undefined postMessage(any message, USVString targetOrigin, optional sequence transfer = []); // FIXME: undefined postMessage(any message, optional WindowPostMessageOptions options = {}); - - // FIXME: Replace these with 'Window includes WindowOrWorkerGlobalScope;' once we have feature parity - [Replaceable] readonly attribute USVString origin; - readonly attribute boolean isSecureContext; - DOMString btoa(DOMString data); - ByteString atob(DOMString data); }; Window includes GlobalEventHandlers; Window includes WindowEventHandlers; +Window includes WindowOrWorkerGlobalScope;