diff --git a/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index 3930d861ed5..a7d9097e47e 100644 --- a/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -265,6 +265,8 @@ HTMLLinkElement::LinkProcessingOptions HTMLLinkElement::create_link_options() // 2. Let options be a new link processing options with LinkProcessingOptions options { // FIXME: destination the result of translating the state of el's as attribute + // cryptographic nonce metadata the current value of el's [[CryptographicNonce]] internal slot + .cryptographic_nonce_metadata = m_cryptographic_nonce, // crossorigin the state of el's crossorigin content attribute .crossorigin = cors_setting_attribute_from_keyword(get_attribute(AttributeNames::crossorigin)), // referrer policy the state of el's referrerpolicy content attribute @@ -280,7 +282,6 @@ HTMLLinkElement::LinkProcessingOptions HTMLLinkElement::create_link_options() .policy_container = document.policy_container(), // document document .document = &document, - // FIXME: cryptographic nonce metadata the current value of el's [[CryptographicNonce]] internal slot // fetch priority the state of el's fetchpriority content attribute .fetch_priority = Fetch::Infrastructure::request_priority_from_string(get_attribute_value(HTML::AttributeNames::fetchpriority)).value_or(Fetch::Infrastructure::Request::Priority::Auto), }; diff --git a/Tests/LibWeb/Text/expected/ContentSecurityPolicy/link-element-nonce.txt b/Tests/LibWeb/Text/expected/ContentSecurityPolicy/link-element-nonce.txt new file mode 100644 index 00000000000..1e04124a3a2 --- /dev/null +++ b/Tests/LibWeb/Text/expected/ContentSecurityPolicy/link-element-nonce.txt @@ -0,0 +1 @@ +rgb(255, 0, 0) diff --git a/Tests/LibWeb/Text/input/ContentSecurityPolicy/link-element-nonce.html b/Tests/LibWeb/Text/input/ContentSecurityPolicy/link-element-nonce.html new file mode 100644 index 00000000000..4597c0c22a1 --- /dev/null +++ b/Tests/LibWeb/Text/input/ContentSecurityPolicy/link-element-nonce.html @@ -0,0 +1,11 @@ + + + + + + +