mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Implement inform the navigation api about aborting navigation
This also requires implementing the abort the ongoing navigation AO on Navigation, which will be used from other NavigateEvent AOs.
This commit is contained in:
parent
25ffe6becb
commit
f296382e1a
5 changed files with 93 additions and 1 deletions
|
@ -106,9 +106,13 @@ public:
|
|||
// Abstract Operations
|
||||
bool has_entries_and_events_disabled() const;
|
||||
i64 get_the_navigation_api_entry_index(SessionHistoryEntry const&) const;
|
||||
void abort_the_ongoing_navigation(Optional<JS::NonnullGCPtr<WebIDL::DOMException>> error = {});
|
||||
|
||||
virtual ~Navigation() override;
|
||||
|
||||
// Internal Getters
|
||||
JS::GCPtr<NavigateEvent> ongoing_navigate_event() const { return m_ongoing_navigate_event; }
|
||||
|
||||
private:
|
||||
explicit Navigation(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue