diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-21 01:40:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-21 11:51:18 +0200 |
commit | 68d0f303681f0352e31d5523925f78d0f0616e05 (patch) | |
tree | 48197cabbbf4e7255c2b24e957651b3c67e7545b | |
parent | 51d7ea7ecea21cc201e94acbfcb66dd3afa2c5b9 (diff) | |
download | serenity-68d0f303681f0352e31d5523925f78d0f0616e05.zip |
LibWeb: Abort the active document when navigating a browsing context
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<void> 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, |