Skip to content

Conversation

@servo-wpt-sync
Copy link
Collaborator

The Document::set_csp_list method now appends new policies to any
existing CspList rather than replacing it. This ensures that CSPs
from multiple sources (e.g., HTTP headers and <meta> tags) are
merged as expected, following the spec.

This change avoids silently discarding header-defined policies when
a <meta http-equiv="Content-Security-Policy"> is present in the
document.

Reviewed in servo/servo#36828

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_36828 branch 3 times, most recently from 6dcedf5 to fc391a4 Compare May 6, 2025 13:32
@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_36828 branch 3 times, most recently from 73495cf to 2dd49f6 Compare May 10, 2025 23:03
Signed-off-by: Emmanuel Paul Elom <elomemmanuel007@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants