mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Include cookies in form submission
Services expect cookies to be submitted with forms, especially login screens. Allows us to sign in to GitHub (including two factor authentication) and start using it!
This commit is contained in:
committed by
Andreas Kling
parent
6e1333cc71
commit
b59773de17
Notes:
sideshowbarker
2024-07-17 17:59:21 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/b59773de17 Pull-request: https://github.com/SerenityOS/serenity/pull/12860
@@ -116,8 +116,7 @@ void HTMLFormElement::submit_form(RefPtr<HTMLElement> submitter, bool from_submi
|
||||
url.set_query(url_encode(parameters, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded));
|
||||
}
|
||||
|
||||
LoadRequest request;
|
||||
request.set_url(url);
|
||||
LoadRequest request = LoadRequest::create_for_url_on_page(url, document().page());
|
||||
|
||||
if (effective_method == "post") {
|
||||
auto body = url_encode(parameters, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded).to_byte_buffer();
|
||||
|
||||
Reference in New Issue
Block a user