From 8af7b64acc81e42b1b32d6702f3a2a2a49f12068 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Wed, 3 Apr 2024 15:54:47 +0200 Subject: [PATCH] LibWeb: Fix typo passing through url_string in 'follow the hyperlink' It's a little bit confusing and awkward that we have `url` _and_ `url_string` here, but let's just fix the typo so that we correctly pass through the URL with the given suffix (if any). Currently, nothing is actually passing through this suffix - so it doesn't fix anything yet, but it becomes relevant in the next commit. --- Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp index fad05dfa242..46675ec05c0 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp @@ -520,7 +520,7 @@ void HTMLHyperlinkElementUtils::follow_the_hyperlink(Optional hyperlink_ auto const referrer_policy = ReferrerPolicy::ReferrerPolicy::EmptyString; // 13. Navigate targetNavigable to urlString using subject's node document, with referrerPolicy set to referrerPolicy and userInvolvement set to userInvolvement. - MUST(target_navigable->navigate({ .url = url, .source_document = hyperlink_element_utils_document(), .referrer_policy = referrer_policy, .user_involvement = user_involvement })); + MUST(target_navigable->navigate({ .url = url_string, .source_document = hyperlink_element_utils_document(), .referrer_policy = referrer_policy, .user_involvement = user_involvement })); } }