1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

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
parent b66f65dc9e
commit 798a1b2751
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 = {});