Skip to content

Truly independent web browser

711 B
Raw Blame
// 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;
    [ImplementedAs=scroll_restoration] attribute ScrollRestoration scrollRestoration;
    readonly attribute any state;
    undefined go(optional long delta = 0);
    undefined back();
    undefined forward();
    [NeedsCallerRealm] undefined pushState(any data, DOMString unused, optional USVString? url = null);
    [NeedsCallerRealm] undefined replaceState(any data, DOMString unused, optional USVString? url = null);
};