LibWeb: Implement navigation.reload()

This has the same issue as navigate(), in that we currently cannot
guarantee that there is a valid navigable on every fully loaded
document.
This commit is contained in:
Andrew Kaster 2023-08-25 14:09:14 -06:00 committed by Andreas Kling
commit 798a1b2751
Notes: sideshowbarker 2024-07-16 20:05:14 +09:00
3 changed files with 62 additions and 5 deletions

View file

@ -14,9 +14,8 @@ interface Navigation : EventTarget {
readonly attribute boolean canGoBack;
readonly attribute boolean canGoForward;
// TODO: Actually implement navigation algorithms
NavigationResult navigate(USVString url, optional NavigationNavigateOptions options = {});
// NavigationResult reload(optional NavigationReloadOptions options = {});
NavigationResult reload(optional NavigationReloadOptions options = {});
// NavigationResult traverseTo(DOMString key, optional NavigationOptions options = {});
// NavigationResult back(optional NavigationOptions options = {});