mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Flesh out apply the history step to setup the navigation API
We now populate the navigation history entries in the navigation API and fire more navigation events as appropriate.
This commit is contained in:
committed by
Alexander Kalenik
parent
a8091c009b
commit
6c1944ee61
Notes:
sideshowbarker
2024-07-16 22:34:39 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/6c1944ee61 Pull-request: https://github.com/SerenityOS/serenity/pull/22850
@@ -3,10 +3,10 @@
|
||||
test(() => {
|
||||
let n = window.navigation;
|
||||
|
||||
// FIXME: Once we set up the interaction between Navigables and Navigation,
|
||||
// These two should become 1 and [object NavigationHistoryEntry], respectively
|
||||
println(`entries is empty: ${n.entries().length == 0}`);
|
||||
println(`currentEntry is null: ${n.currentEntry == null}`);
|
||||
let len = n.entries().length;
|
||||
|
||||
println(`entries[length - 1] is current entry: ${n.entries()[len - 1] === n.currentEntry}`);
|
||||
println(`currentEntry is a ${n.currentEntry}`);
|
||||
|
||||
println(`transition is null: ${n.transition == null}`);
|
||||
println(`canGoBack: ${n.canGoBack}`);
|
||||
|
||||
Reference in New Issue
Block a user