1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

LibWeb: Add NavigationHistoryEntry, a wrapper around SessionHistoryEntry

This commit is contained in:
Andrew Kaster 2023-08-23 10:47:05 -06:00 committed by Andrew Kaster
parent daa9c4a650
commit 3c1d4eab24
9 changed files with 214 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#import <DOM/EventHandler.idl>
#import <DOM/EventTarget.idl>
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigationtype
[Exposed=Window, UseNewAKString]
interface NavigationHistoryEntry : EventTarget {
readonly attribute USVString? url;
readonly attribute DOMString key;
readonly attribute DOMString id;
readonly attribute long long index;
readonly attribute boolean sameDocument;
any getState();
attribute EventHandler ondispose;
};