LibWeb: Add NavigationTransition, a transient property of Navigation

This property is useful for web content to determine whether an ongoing
navigation has settled or not.
This commit is contained in:
Andrew Kaster 2023-08-23 15:34:02 -06:00 committed by Andrew Kaster
commit 3dd3b2019d
Notes: sideshowbarker 2024-07-17 03:03:37 +09:00
11 changed files with 118 additions and 1 deletions

View file

@ -0,0 +1,9 @@
#import <HTML/NavigationType.idl>
#import <HTML/NavigationHistoryEntry.idl>
[Exposed=Window, UseNewAKString]
interface NavigationTransition {
readonly attribute NavigationType navigationType;
readonly attribute NavigationHistoryEntry from;
readonly attribute Promise<undefined> finished;
};