From e4e64c15aa1027754a4ed47504e2ba42d262e927 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Sun, 21 Jul 2024 02:34:50 +0100 Subject: [PATCH] LibWeb/HTML: Stub History.scrollRestoration --- Userland/Libraries/LibWeb/HTML/History.idl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/History.idl b/Userland/Libraries/LibWeb/HTML/History.idl index f1800e724ea..d9ff38c469f 100644 --- a/Userland/Libraries/LibWeb/HTML/History.idl +++ b/Userland/Libraries/LibWeb/HTML/History.idl @@ -1,8 +1,11 @@ +// https://html.spec.whatwg.org/multipage/nav-history-apis.html#scrollrestoration +enum ScrollRestoration { "auto", "manual" }; + // https://html.spec.whatwg.org/multipage/history.html#the-history-interface [Exposed=Window] interface History { readonly attribute unsigned long length; - // FIXME: attribute ScrollRestoration scrollRestoration; + [FIXME] attribute ScrollRestoration scrollRestoration; readonly attribute any state; undefined go(optional long delta = 0); undefined back();