|
@@ -391,7 +391,7 @@ void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastru
|
|
// type
|
|
// type
|
|
// text/css
|
|
// text/css
|
|
// location
|
|
// location
|
|
- // The resulting URL string determined during the fetch and process the linked resource algorithm.
|
|
|
|
|
|
+ // response's URL list[0]
|
|
// owner node
|
|
// owner node
|
|
// element
|
|
// element
|
|
// media
|
|
// media
|
|
@@ -438,6 +438,10 @@ void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastru
|
|
m_loaded_style_sheet = parse_css_stylesheet(CSS::Parser::ParsingContext(document(), *response.url()), decoded_string);
|
|
m_loaded_style_sheet = parse_css_stylesheet(CSS::Parser::ParsingContext(document(), *response.url()), decoded_string);
|
|
|
|
|
|
if (m_loaded_style_sheet) {
|
|
if (m_loaded_style_sheet) {
|
|
|
|
+ Optional<String> location;
|
|
|
|
+ if (!response.url_list().is_empty())
|
|
|
|
+ location = MUST(response.url_list().first().to_string());
|
|
|
|
+
|
|
document().style_sheets().create_a_css_style_sheet(
|
|
document().style_sheets().create_a_css_style_sheet(
|
|
"text/css"_string,
|
|
"text/css"_string,
|
|
this,
|
|
this,
|
|
@@ -445,7 +449,7 @@ void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastru
|
|
in_a_document_tree() ? attribute(HTML::AttributeNames::title).value_or({}) : String {},
|
|
in_a_document_tree() ? attribute(HTML::AttributeNames::title).value_or({}) : String {},
|
|
m_relationship & Relationship::Alternate && !m_explicitly_enabled,
|
|
m_relationship & Relationship::Alternate && !m_explicitly_enabled,
|
|
true,
|
|
true,
|
|
- {},
|
|
|
|
|
|
+ move(location),
|
|
nullptr,
|
|
nullptr,
|
|
nullptr,
|
|
nullptr,
|
|
*m_loaded_style_sheet);
|
|
*m_loaded_style_sheet);
|