mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
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.
This commit is contained in:
parent
5d5b69578f
commit
8af7b64acc
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/shannonbooth
Commit: 8af7b64acc
Pull-request: https://github.com/SerenityOS/serenity/pull/23820
Reviewed-by: https://github.com/trflynn89
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ void HTMLHyperlinkElementUtils::follow_the_hyperlink(Optional<String> 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 }));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue