mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +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:
parent
b66f65dc9e
commit
798a1b2751
3 changed files with 62 additions and 5 deletions
|
@ -75,13 +75,15 @@ public:
|
|||
Vector<JS::NonnullGCPtr<NavigationHistoryEntry>> entries() const;
|
||||
JS::GCPtr<NavigationHistoryEntry> current_entry() const;
|
||||
WebIDL::ExceptionOr<void> update_current_entry(NavigationUpdateCurrentEntryOptions);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-transition
|
||||
JS::GCPtr<NavigationTransition> transition() const { return m_transition; }
|
||||
|
||||
bool can_go_back() const;
|
||||
bool can_go_forward() const;
|
||||
|
||||
WebIDL::ExceptionOr<NavigationResult> navigate(String url, NavigationNavigateOptions const&);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-transition
|
||||
JS::GCPtr<NavigationTransition> transition() const { return m_transition; }
|
||||
WebIDL::ExceptionOr<NavigationResult> reload(NavigationReloadOptions const&);
|
||||
|
||||
// Event Handlers
|
||||
void set_onnavigate(WebIDL::CallbackType*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue