From 68d0f303681f0352e31d5523925f78d0f0616e05 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 21 Sep 2022 01:40:31 +0200 Subject: LibWeb: Abort the active document when navigating a browsing context --- Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp') diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp index 95464fa6b5..726354d98b 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp @@ -953,7 +953,8 @@ DOM::ExceptionOr BrowsingContext::navigate( // FIXME: 13. If unloadPromptResult is "refuse", then return a new WebDriver BiDi navigation status whose id is navigationId and status is "canceled". - // FIXME: 14. Abort the active document of browsingContext. + // 14. Abort the active document of browsingContext. + active_document()->abort(); // FIXME: 15. If browsingContext is a child browsing context, then put it in the delaying load events mode. // The user agent must take this child browsing context out of the delaying load events mode when this navigation algorithm later matures, -- cgit v1.2.3