mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Set Cookie header on remaining resource requests
This commit is contained in:
parent
0cacc52990
commit
0f47a23e8e
Notes:
sideshowbarker
2024-07-18 20:18:56 +09:00
Author: https://github.com/trflynn89
Commit: 0f47a23e8e
Pull-request: https://github.com/SerenityOS/serenity/pull/6321
4 changed files with 5 additions and 9 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <LibWeb/CSS/CSSImportRule.h>
|
||||
#include <LibWeb/CSS/Parser/DeprecatedCSSParser.h>
|
||||
#include <LibWeb/CSS/StyleSheet.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/Loader/CSSLoader.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
|
@ -56,8 +57,7 @@ void CSSLoader::load_from_url(const URL& url)
|
|||
m_style_sheet = CSS::CSSStyleSheet::create({});
|
||||
m_style_sheet->set_owner_node(&m_owner_element);
|
||||
|
||||
LoadRequest request;
|
||||
request.set_url(url);
|
||||
auto request = LoadRequest::create_for_url_on_page(url, m_owner_element.document().page());
|
||||
set_resource(ResourceLoader::the().load_resource(Resource::Type::Generic, request));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue